mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Improved handling of openmp flags using set_target_properties
This commit is contained in:
parent
de6dbd3051
commit
25f2244d49
1 changed files with 1 additions and 5 deletions
6
external/external_build.cmake
vendored
6
external/external_build.cmake
vendored
|
@ -5,13 +5,9 @@ OPTION(ENABLE_OPENMP "Set to Yes if Healpix and/or you need openMP" OFF)
|
|||
IF(ENABLE_OPENMP)
|
||||
|
||||
IF (NOT OPENMP_FOUND)
|
||||
MESSAGE(ERROR "No known compiler option for enabling OpenMP")
|
||||
MESSAGE(FATAL_ERROR "No known compiler option for enabling OpenMP")
|
||||
ENDIF(NOT OPENMP_FOUND)
|
||||
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKED_FLAGS} ${OpenMP_C_FLAGS}")
|
||||
|
||||
ENDIF(ENABLE_OPENMP)
|
||||
|
||||
SET(BUILD_PREFIX ${CMAKE_BINARY_DIR}/ep_build)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue