Fix pip build on Windows

This commit is contained in:
Matthias Hochsteger 2023-10-03 19:22:12 +02:00
parent f695cbbace
commit bd5751b26b

View File

@ -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()