From bd5751b26bf6919d7948065f03024cd7c09324fa Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 3 Oct 2023 19:22:12 +0200 Subject: [PATCH] Fix pip build on Windows --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b0a57c0..231cb319 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -321,7 +321,7 @@ if (USE_PYTHON) target_include_directories(netgen_python INTERFACE ${pybind11_INCLUDE_DIR} ${Python3_INCLUDE_DIRS}) target_include_directories(nglib PRIVATE ${pybind11_INCLUDE_DIR} ${Python3_INCLUDE_DIRS}) - if(Python3_LIBRARIES AND NOT BUILD_FOR_CONDA) + if(Python3_LIBRARIES AND (WIN32 OR NOT BUILD_FOR_CONDA)) target_link_libraries(netgen_python INTERFACE ${Python3_LIBRARIES}) endif()