aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-18 08:23:34 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-18 08:23:34 +0100
commit4d324593cd1af2c11fab2b0b85f9dc6bffc649e9 (patch)
tree0db0418e38ff549cac2a3dfe858fc3af2e34b0af /CMakeLists.txt
parentbe9c06cecaa710f53a538b8975de72332904c1ca (diff)
parentf12504a479fb0884f2022414772dde3a4b5aa9df (diff)
downloadayatana-indicator-sound-4d324593cd1af2c11fab2b0b85f9dc6bffc649e9.tar.gz
ayatana-indicator-sound-4d324593cd1af2c11fab2b0b85f9dc6bffc649e9.tar.bz2
ayatana-indicator-sound-4d324593cd1af2c11fab2b0b85f9dc6bffc649e9.zip
Merge branch 'tari01-pr/cleanup-compile-flags'
Attributes GH PR #76: https://github.com/AyatanaIndicators/ayatana-indicator-sound/pull/76
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 7 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a4618aa..9c3dfa4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,8 +27,13 @@ else()
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()
set(GETTEXT_PACKAGE "ayatana-indicator-sound")
@@ -82,13 +87,6 @@ find_package(GObjectIntrospection 0.9.12)
include_directories(${SOURCE_DIR})
include_directories(${SOURCE_BINARY_DIR})
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-
-add_definitions(
- -Wall
-)
-
configure_file(
"config.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/config.h"