summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-04-20 20:10:20 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2019-04-20 20:10:20 +0200
commit1cb782c4ffbb6af576a6d1e265b300fa3fee253d (patch)
treeaea833bc43a6700ff7e66d3aabe7b1c0e6ec5bdc /CMakeLists.txt
parentda90237d03f4ace36b5779b414554d564ec355c4 (diff)
downloadcc4group-1cb782c4ffbb6af576a6d1e265b300fa3fee253d.tar.gz
cc4group-1cb782c4ffbb6af576a6d1e265b300fa3fee253d.zip
Add warnings settings to CXXFLAGS
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3a5d02..2b6c5f7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,10 @@ if(${CMAKE_C_COMPILER_ID} MATCHES GNU)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wcast-align -Werror")
endif()
+if(${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wcast-align -Werror")
+endif()
+
find_package(ZLIB REQUIRED)