Skip to content

Commit

Permalink
No need to link directly with cpython
Browse files Browse the repository at this point in the history
Stupid Windows

Contributes to CURA-10561
  • Loading branch information
jellespijker committed Oct 28, 2023
1 parent 2197857 commit b2e8a6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyDulcificum/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
find_package(pybind11 REQUIRED)
find_package(cpython REQUIRED)

pybind11_add_module(pyDulcificum pyDulcificum.cpp)
target_link_libraries(pyDulcificum PUBLIC dulcificum pybind11::pybind11 cpython::cpython)
target_link_libraries(pyDulcificum PUBLIC dulcificum pybind11::pybind11)
target_compile_definitions(pyDulcificum PRIVATE PYDULCIFICUM_VERSION="${PYDULCIFICUM_VERSION}")
if(NOT MSVC AND NOT ${CMAKE_BUILD_TYPE} MATCHES Debug|RelWithDebInfo)
pybind11_strip(pyDulcificum)
Expand Down

0 comments on commit b2e8a6e

Please sign in to comment.