-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeBasics.cmake
More file actions
29 lines (19 loc) · 979 Bytes
/
CMakeBasics.cmake
File metadata and controls
29 lines (19 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
set(CMAKE_ENABLE_EXPORTS ON)
if( CMAKE_BUILD_TYPE MATCHES "Debug" )
else()
endif()
option( ENABLE_COVERAGE "Enable coverage" OFF )
#set( SHIVA_BUILD_OBJ_LIBS OFF CACHE BOOL "" )
# if( CMAKE_CXX_STANDARD IN_LIST "98; 11; 14" )
# MESSAGE(FATAL_ERROR "Shiva requires at least c++17")
# endif()
blt_append_custom_compiler_flag( FLAGS_VAR CMAKE_CXX_FLAGS DEFAULT "${OpenMP_CXX_FLAGS}")
blt_append_custom_compiler_flag( FLAGS_VAR CMAKE_CXX_FLAGS
GNU "-Wpedantic -pedantic-errors -Wshadow -Wfloat-equal -Wcast-align -Wcast-qual"
CLANG "-Wpedantic -pedantic-errors -Wshadow -Wfloat-equal -Wcast-align -Wcast-qual -Wabsolute-value"
)
blt_append_custom_compiler_flag( FLAGS_VAR CMAKE_CXX_FLAGS_DEBUG
GNU ""
CLANG "-fstandalone-debug"
)
set( CAMP_ENABLE_TESTS OFF CACHE BOOL "")