File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ Options
5555- ` enable-static ` : compiles static libraries
5656- ` enable-doxygen-doc ` : enable the generation of the API documentation
5757 using with ` Doxygen ` .
58+ - ` disable_python_library_linking ` : when set to ` ON ` , this option
59+ disables the link to ` python ` libraries. This is required when building
60+ against ` anaconda ` on ` Mac OS ` . This can be enabled by default because
61+ it will lead to a failure with the ` python ` version of homebrew.
5862
5963` cmake ` usefull variables
6064=======================
Original file line number Diff line number Diff line change @@ -50,17 +50,17 @@ function(mgis_python_module name output_name)
5050 MFrontGenericInterface ${CONAN_LIBS} )
5151 endif (APPLE )
5252 else (MGIS_USES_CONAN )
53- if (APPLE )
53+ if (disable_python_library_linking )
5454 target_link_libraries (${module}
5555 PRIVATE
5656 MFrontGenericInterface
5757 ${Boost_NUMPY_LIBRARY} ${Boost_PYTHON_LIBRARY} )
58- else (APPLE )
58+ else (disable_python_library_linking )
5959 target_link_libraries (${module}
6060 PRIVATE
6161 MFrontGenericInterface
6262 ${Boost_NUMPY_LIBRARY} ${Boost_PYTHON_LIBRARY} ${PYTHON_LIBRARIES} )
63- endif (APPLE )
63+ endif (disable_python_library_linking )
6464 endif (MGIS_USES_CONAN )
6565 # installation
6666 install (TARGETS ${module}
You can’t perform that action at this time.
0 commit comments