Skip to content

Commit be7c2ef

Browse files
committed
set runtime path for python library
1 parent cabded6 commit be7c2ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ set_target_properties(
3535
PROPERTIES PREFIX ""
3636
SUFFIX ${PYTHON_EXT_SUFFIX}
3737
LIBRARY_OUTPUT_DIRECTORY
38+
"${CMAKE_BINARY_DIR}/python/${PROJECT_NAME}"
39+
LIBRARY_OUTPUT_DIRECTORY_<CONFIG>
40+
"${CMAKE_BINARY_DIR}/python/${PROJECT_NAME}"
41+
RUNTIME_OUTPUT_DIRECTORY
42+
"${CMAKE_BINARY_DIR}/python/${PROJECT_NAME}"
43+
RUNTIME_OUTPUT_DIRECTORY_<CONFIG>
3844
"${CMAKE_BINARY_DIR}/python/${PROJECT_NAME}")
3945

4046
if(UNIX AND NOT APPLE)

0 commit comments

Comments
 (0)