File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,15 @@ function(mgis_python_module fullname name)
55 add_library (py_${fullname} MODULE ${ARGN} )
66 target_include_directories (py_${fullname} PRIVATE
77 $<BUILD_INTERFACE :${PROJECT_SOURCE_DIR } /bindings /python /include >)
8- target_link_libraries (py_${fullname} PRIVATE
9- MFrontGenericInterface
10- pybind11::module pybind11::lto pybind11::windows_extras )
8+ if (TARGET pybind11::lto)
9+ target_link_libraries (py_${fullname} PRIVATE
10+ MFrontGenericInterface
11+ pybind11::module pybind11::lto pybind11::windows_extras )
12+ else (TARGET pybind11::lto )
13+ target_link_libraries (py_${fullname} PRIVATE
14+ MFrontGenericInterface
15+ pybind11::module pybind11::windows_extras )
16+ endif (TARGET pybind11::lto )
1117 pybind11_extension (py_${fullname} )
1218 if (NOT MSVC AND NOT ${CMAKE_BUILD_TYPE } MATCHES Debug|RelWithDebInfo)
1319 # Strip unnecessary sections of the binary on Linux/macOS
You can’t perform that action at this time.
0 commit comments