modernize the way how to check/deal with OpenMP. This helps also on the macOS side.
This commit is contained in:
@ -109,13 +109,13 @@ find_package(FFTW3 REQUIRED)
|
||||
find_package(LibXml2 REQUIRED)
|
||||
|
||||
#--- check for OpenMP ---------------------------------------------------------
|
||||
if (try_OpenMP AND NOT APPLE)
|
||||
if (try_OpenMP)
|
||||
find_package(OpenMP)
|
||||
if (OpenMP_FOUND)
|
||||
if (OpenMP_CXX_FOUND)
|
||||
add_definitions(-DHAVE_GOMP)
|
||||
set(HAVE_GOMP 1 CACHE INTERNAL "Have GOMP")
|
||||
endif (OpenMP_FOUND)
|
||||
endif (try_OpenMP AND NOT APPLE)
|
||||
endif (OpenMP_CXX_FOUND)
|
||||
endif (try_OpenMP)
|
||||
|
||||
#--- check for Qt -------------------------------------------------------------
|
||||
if (qt_based_tools)
|
||||
|
Reference in New Issue
Block a user