diff options
author | Robert Tari <robert@tari.in> | 2022-01-13 12:55:54 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-02-01 07:58:22 +0100 |
commit | 59283b0aac2dc12e955a3dd9604cc129f19ef74a (patch) | |
tree | 702ddbdc4a483a025813320861779faddc8a88d4 | |
parent | d23a290dae52eec26bb4fd772168f38bd6e59f4e (diff) | |
download | qmenumodel-59283b0aac2dc12e955a3dd9604cc129f19ef74a.tar.gz qmenumodel-59283b0aac2dc12e955a3dd9604cc129f19ef74a.tar.bz2 qmenumodel-59283b0aac2dc12e955a3dd9604cc129f19ef74a.zip |
CMakeLists.txt: Clean up compilation flags
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bd3f3e8..7e11db6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,8 +25,13 @@ if(ENABLE_TESTS) endif() if(ENABLE_WERROR) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") + add_definitions("-Werror") +endif() + +if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + add_definitions("-Weverything") +else() + add_definitions("-Wall") endif() # Standard install paths |