mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 18:17:34 +08:00
cmake: respect MAX_CUSTOM_OPT_LEVEL if set
- ignored for Debug and Coverage builds
This commit is contained in:
@@ -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 ")
|
||||
|
||||
Reference in New Issue
Block a user