Skip to content
Snippets Groups Projects
Commit e84410d7 authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[cmake] Do no search for OpenMP when MKL is used.

This otherwise pulls in libgomp dependency.
parent 6dc09812
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,6 @@ if(OGS_USE_MFRONT)
endif()
find_package(Threads)
find_package(OpenMP COMPONENTS C CXX)
# Qt5 library ##
if(OGS_BUILD_GUI)
set(QT_MODULES Gui Widgets Xml XmlPatterns)
......@@ -62,12 +60,17 @@ if(OGS_USE_NETCDF)
find_package(NetCDF REQUIRED)
endif()
# lapack
find_package(LAPACK QUIET)
# geotiff ##
find_package(GEOTIFF)
if(NOT OGS_USE_MKL)
# this pulls in libgomp dependency, when MKL is enabled libiomp5 is used.
find_package(OpenMP COMPONENTS C CXX)
endif()
# blas / lapack
find_package(LAPACK)
if(OGS_USE_MKL)
find_package(MKL REQUIRED)
find_file(MKL_SETVARS setvars.sh PATHS ${MKL_ROOT_DIR} ${MKL_ROOT_DIR}/..
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment