diff --git a/cmake/Modules/FindMKL.cmake b/cmake/Modules/FindMKL.cmake index 1b1423988..d7c359c53 100644 --- cmake/Modules/FindMKL.cmake +++ cmake/Modules/FindMKL.cmake @@ -102,6 +102,9 @@ IF (EXISTS ${INTEL_MKL_DIR}) ENDIF() ENDIF() +SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "MACPORTS_PREFIX/lib") +SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "MACPORTS_PREFIX/lib/libomp") + # Try linking multiple libs MACRO(CHECK_ALL_LIBRARIES LIBRARIES _name _list _flags) # This macro checks for the existence of the combination of libraries given by _list.