From b2e8a6e09bf2a26fe16b63c8db8cf2ccfeb4ab50 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Sat, 28 Oct 2023 15:02:39 +0200 Subject: [PATCH] No need to link directly with cpython Stupid Windows Contributes to CURA-10561 --- pyDulcificum/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyDulcificum/CMakeLists.txt b/pyDulcificum/CMakeLists.txt index 697ea38..c49c4a9 100644 --- a/pyDulcificum/CMakeLists.txt +++ b/pyDulcificum/CMakeLists.txt @@ -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)