minor cmake bug - debug mode should turn off openmp before we have already included it
This commit is contained in:
parent
f645c9d8fd
commit
3cccce32e6
@ -17,6 +17,13 @@ add_compile_options(-Wall -Wextra -pedantic -Werror -fno-omit-frame-pointer)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
OPTION (USE_OpenMP "Use OpenMP" ON)
|
||||
|
||||
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
add_compile_options(--coverage)
|
||||
add_link_options(--coverage)
|
||||
set( USE_OpenMP OFF )
|
||||
endif()
|
||||
|
||||
IF(USE_OpenMP)
|
||||
FIND_PACKAGE(OpenMP)
|
||||
IF(OPENMP_C_FOUND)
|
||||
@ -25,12 +32,6 @@ IF(USE_OpenMP)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
add_compile_options(--coverage)
|
||||
add_link_options(--coverage)
|
||||
set( USE_OpenMP OFF )
|
||||
endif()
|
||||
|
||||
#jemalloc seems to be quite a bit faster
|
||||
OPTION (USE_jemalloc "Use jemalloc" ON)
|
||||
if (USE_jemalloc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user