Skip to content

Commit e1713be

Browse files
committed
Fixed last copy step
1 parent 914a518 commit e1713be

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/python-package.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
fi
5353
if [ ${build_os:0:7} == windows ]; then
5454
pwsh -Command "msbuild bitsandbytes.vcxproj /property:Configuration=Release"
55-
# cp ./Release/*.dll ./bitsandbytes/
5655
else
5756
make
5857
fi
@@ -117,7 +116,6 @@ jobs:
117116
else
118117
cmake .
119118
pwsh -Command "msbuild bitsandbytes.vcxproj /property:Configuration=Release"
120-
# cp ./Release/*.dll ./bitsandbytes/
121119
fi
122120
mkdir -p output/${{ matrix.os }}/${{ matrix.arch }}
123121
( shopt -s nullglob && cp bitsandbytes/*.{so,dylib,dll} output/${{ matrix.os }}/${{ matrix.arch }}/ )

CMakeLists.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,9 @@ if(ENABLE_CUDA)
8383
endif()
8484

8585
# Set the output name of the CUDA library
86-
set_target_properties(bitsandbytes PROPERTIES LIBRARY_OUTPUT_DIRECTORY ./bitsandbytes)
87-
set_target_properties(bitsandbytes PROPERTIES OUTPUT_NAME "bitsandbytes_${LIBSUFFIX}")
88-
8986
if(MSVC)
90-
add_custom_command(TARGET libbitsandbytes_cuda POST_BUILD
91-
COMMAND ${CMAKE_COMMAND} -E copy_directory # which executes "cmake - E copy_if_different..."
92-
$<TARGET_FILE_DIR:bitsandbytes_${LIBSUFFIX}>
93-
"${PROJECT_SOURCE_DIR}/bitsandbytes" )
87+
set_target_properties(bitsandbytes PROPERTIES LIBRARY_OUTPUT_DIRECTORY_RELEASE ./bitsandbytes)
88+
set_target_properties(bitsandbytes PROPERTIES LIBRARY_OUTPUT_DIRECTORY_DEBUG ./bitsandbytes)
9489
endif()
90+
91+
set_target_properties(bitsandbytes PROPERTIES LIBRARY_OUTPUT_DIRECTORY ./bitsandbytes)

0 commit comments

Comments
 (0)