diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-01-10 12:21:53 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-01-10 21:42:20 +0200 |
commit | d7d73a26ac0d886e3f07ce2eef848e8c66659af4 (patch) | |
tree | fb34a1200453f5399b7a702da9805210c9b48d98 /CMakeLists.txt | |
parent | 06033885b78eee2c4bb2cba476594f793cac5979 (diff) | |
download | qtlocation-mapboxgl-d7d73a26ac0d886e3f07ce2eef848e8c66659af4.tar.gz |
[build] Do not override CMake build configuration flags
These flags are set, for instance, by Ninja on Windows.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 69bb5abe4c..3f787b6dfb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,9 +80,9 @@ if(APPLE AND CMAKE_CXX_COMPILER_ID MATCHES ".*Clang") # -Wno-error=unused-command-line-argument is required due to https://llvm.org/bugs/show_bug.cgi?id=7798 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=unused-command-line-argument") endif() -set(CMAKE_CXX_FLAGS_RELEASE "-Os -DNDEBUG") -set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -DNDEBUG") -set(CMAKE_CXX_FLAGS_SANITIZE "-O1 -g -fno-omit-frame-pointer -fno-optimize-sibling-calls") +set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Os -DNDEBUG") +set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O3 -DNDEBUG") +set(CMAKE_CXX_FLAGS_SANITIZE "${CMAKE_CXX_FLAGS_SANITIZE} -O1 -g -fno-omit-frame-pointer -fno-optimize-sibling-calls") if(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang") |