Skip to content

Commit

Permalink
python linking workaround on OSX only in conda-based builds
Browse files Browse the repository at this point in the history
  • Loading branch information
k-dominik committed Mar 27, 2023
1 parent fd3423f commit cee42d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/FindVIGRANUMPY_DEPENDENCIES.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ IF(Python_Interpreter_FOUND)
SET(VIGRANUMPY_INCLUDE_DIRS ${VIGRANUMPY_INCLUDE_DIRS}
CACHE PATH "include directories needed by VIGRA Python bindings"
FORCE)
IF(APPLE)
# due to some static linking in Python on conda-forge, Python cannot be directly linked to
# see also https://github.com/ukoethe/vigra/pull/538
IF(APPLE AND DEFINED ENV{CONDA_TOOLCHAIN_BUILD})
SET(VIGRANUMPY_LIBRARIES ${Boost_PYTHON_LIBRARY})
ELSE()
SET(VIGRANUMPY_LIBRARIES ${Python_LIBRARIES} ${Boost_PYTHON_LIBRARY})
Expand Down

0 comments on commit cee42d9

Please # to comment.