From c816797879dcde38a8848522bd11d0cd28883749 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 20 Jan 2021 23:34:30 +0300 Subject: [PATCH] mdbx-cmake: minor/cosmetics unify quoting for `add_compile_flags()`. Change-Id: Idad9dccaedb71be42adb4366a7a995ccf7ab8db8 --- cmake/compiler.cmake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake index ab72b897..4fc94fe3 100644 --- a/cmake/compiler.cmake +++ b/cmake/compiler.cmake @@ -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)