Set OpenMP compiler flags.
This commit is contained in:
parent
a2f0e566c7
commit
993e853a5f
@ -122,6 +122,8 @@ INCLUDE(FindOpenMP)
|
|||||||
IF(OPENMP_FOUND)
|
IF(OPENMP_FOUND)
|
||||||
SET(HAVE_OPENMP ${OPENMP_FOUND} CACHE BOOL "Set to TRUE if OpenMP is found, FALSE otherwise")
|
SET(HAVE_OPENMP ${OPENMP_FOUND} CACHE BOOL "Set to TRUE if OpenMP is found, FALSE otherwise")
|
||||||
MESSAGE(STATUS "Looking for OpenMP - found")
|
MESSAGE(STATUS "Looking for OpenMP - found")
|
||||||
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
|
||||||
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
||||||
ELSE(OPENMP_FOUND)
|
ELSE(OPENMP_FOUND)
|
||||||
MESSAGE(STATUS "Looking for OpenMP - not found")
|
MESSAGE(STATUS "Looking for OpenMP - not found")
|
||||||
ENDIF(OPENMP_FOUND)
|
ENDIF(OPENMP_FOUND)
|
||||||
|
Loading…
Reference in New Issue
Block a user