Skip to content

Commit

Permalink
Fix BUILD_PYTHON_MODULE option on Windows/MSVC (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Apr 4, 2021
1 parent 0210cfb commit 3e7650b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ if(BUILD_PYTHON_MODULE)
pybind11_add_module(python_ruckig src/python.cpp)
target_compile_features(python_ruckig PUBLIC cxx_std_17)
target_link_libraries(python_ruckig PUBLIC ruckig)
set_target_properties(python_ruckig PROPERTIES OUTPUT_NAME ruckig)
if(NOT MSVC)
set_target_properties(python_ruckig PROPERTIES OUTPUT_NAME ruckig)
else()
set_target_properties(python_ruckig PROPERTIES RUNTIME_OUTPUT_NAME ruckig)
endif()
endif()


Expand Down

0 comments on commit 3e7650b

Please sign in to comment.