aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-01-13 12:55:54 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-01 07:58:22 +0100
commit59283b0aac2dc12e955a3dd9604cc129f19ef74a (patch)
tree702ddbdc4a483a025813320861779faddc8a88d4
parentd23a290dae52eec26bb4fd772168f38bd6e59f4e (diff)
downloadqmenumodel-59283b0aac2dc12e955a3dd9604cc129f19ef74a.tar.gz
qmenumodel-59283b0aac2dc12e955a3dd9604cc129f19ef74a.tar.bz2
qmenumodel-59283b0aac2dc12e955a3dd9604cc129f19ef74a.zip
CMakeLists.txt: Clean up compilation flags
-rw-r--r--CMakeLists.txt9
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