Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
cmake: respect MAX_CUSTOM_OPT_LEVEL if set
Browse files Browse the repository at this point in the history
 - ignored for Debug and Coverage builds
  • Loading branch information
dagar committed Oct 27, 2020
1 parent 5ea8824 commit 961b545
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)

endif()

if(NOT (${CMAKE_BUILD_TYPE} MATCHES "Coverage") AND NOT (${CMAKE_BUILD_TYPE} MATCHES "Debug"))
if(MAX_CUSTOM_OPT_LEVEL)
add_compile_options(${MAX_CUSTOM_OPT_LEVEL})
endif()
endif()

# santiziers (ASAN)
if(ECL_ASAN)
message(STATUS "ecl address sanitizer enabled ")
Expand Down

0 comments on commit 961b545

Please sign in to comment.