diff --git a/cmake/modules/FindPythonLibsNew.cmake b/cmake/modules/FindPythonLibsNew.cmake index 7ecfcca4fc1e3c2805899ef00c00c3c6aa777408..ca7c3c19934e2d85e8a7e896528bdbb7fd614ca4 100644 --- a/cmake/modules/FindPythonLibsNew.cmake +++ b/cmake/modules/FindPythonLibsNew.cmake @@ -147,7 +147,7 @@ elseif(APPLE) # Seems to require "-undefined dynamic_lookup" instead of linking # against the .dylib, otherwise it crashes. This flag is added # below - set(PYTHON_LIBRARY "") + #set(PYTHON_LIBRARY "") #set(PYTHON_LIBRARY # "${PYTHON_PREFIX}/lib/libpython${PYTHON_LIBRARY_SUFFIX}.dylib") else() diff --git a/cmake/modules/SearchInstalledSoftware.cmake b/cmake/modules/SearchInstalledSoftware.cmake index e5f4a6c5920fd9c66798b3b469279593b9ef2cf5..11eda33508520876393df3dcfb39b159ef9f4b42 100644 --- a/cmake/modules/SearchInstalledSoftware.cmake +++ b/cmake/modules/SearchInstalledSoftware.cmake @@ -75,6 +75,8 @@ if(BORNAGAIN_PYTHON OR BORNAGAIN_GUI) message(STATUS "--> Static python library detected, adding ${syslibs}") set(PYTHON_LIBRARIES "${syslibs} ${PYTHON_LIBRARIES}") endif() + message(STATUS "--> Python libraries ${PYTHON_LIBRARIES}") + find_package(Numpy REQUIRED) endif()