mdbx-cmake: minor/cosmetics unify quoting for add_compile_flags().

Change-Id: Idad9dccaedb71be42adb4366a7a995ccf7ab8db8
This commit is contained in:
Leonid Yuriev 2021-01-20 23:34:30 +03:00
parent 730b9ea3fd
commit c816797879

View File

@ -533,7 +533,7 @@ macro(setup_compile_flags)
add_compile_flags("C;CXX" "-fexceptions")
endif()
if(CC_HAS_FCXX_EXCEPTIONS)
add_compile_flags("CXX" "-fcxx-exceptions -frtti")
add_compile_flags("CXX" "-fcxx-exceptions" "-frtti")
endif()
if(MSVC)
# checks for /EHa or /clr options exists,
@ -583,13 +583,13 @@ macro(setup_compile_flags)
endif()
if(CC_HAS_WNO_UNKNOWN_PRAGMAS AND NOT HAVE_OPENMP)
add_compile_flags("C;CXX" -Wno-unknown-pragmas)
add_compile_flags("C;CXX" "-Wno-unknown-pragmas")
endif()
if(CC_HAS_SECTIONS)
add_compile_flags("C;CXX" -ffunction-sections -fdata-sections)
add_compile_flags("C;CXX" "-ffunction-sections" "-fdata-sections")
elseif(MSVC)
add_compile_flags("C;CXX" /Gy)
add_compile_flags("C;CXX" "/Gy")
endif()
# We must set -fno-omit-frame-pointer here, since we rely
@ -649,11 +649,11 @@ macro(setup_compile_flags)
endif()
if(ENABLE_ASAN)
add_compile_flags("C;CXX" -fsanitize=address)
add_compile_flags("C;CXX" "-fsanitize=address")
endif()
if(ENABLE_UBSAN)
add_compile_flags("C;CXX" -fsanitize=undefined)
add_compile_flags("C;CXX" "-fsanitize=undefined")
endif()
if(ENABLE_GCOV)