summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTau <tau.tihon@gmail.com>2014-01-02 18:27:18 +0100
committerTau <tau.tihon@gmail.com>2014-01-02 18:27:18 +0100
commitbe1c8bfc0cbfccff17c9795c42fc58eac64e24a3 (patch)
treeb4fab248ea177e8da3da82106128bfd914ad6032 /CMakeLists.txt
parent[Handy] updated for new API, fixed bugs, added warnings. Now v2. (diff)
parentMerge pull request #499 from worktycho/master (diff)
downloadcuberite-be1c8bfc0cbfccff17c9795c42fc58eac64e24a3.tar
cuberite-be1c8bfc0cbfccff17c9795c42fc58eac64e24a3.tar.gz
cuberite-be1c8bfc0cbfccff17c9795c42fc58eac64e24a3.tar.bz2
cuberite-be1c8bfc0cbfccff17c9795c42fc58eac64e24a3.tar.lz
cuberite-be1c8bfc0cbfccff17c9795c42fc58eac64e24a3.tar.xz
cuberite-be1c8bfc0cbfccff17c9795c42fc58eac64e24a3.tar.zst
cuberite-be1c8bfc0cbfccff17c9795c42fc58eac64e24a3.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 67f70142b..451854074 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -112,11 +112,15 @@ add_subdirectory(lib/expat/)
add_subdirectory(lib/luaexpat/)
add_subdirectory(lib/md5/)
-# Re-add the maximum warning level:
+# Remove disabling the maximum warning level:
+# clang does not like a command line that reads -Wall -Wextra -w -Wall -Wextra and does not output any warnings
# We do not do that for MSVC since MSVC produces an awful lot of warnings for its own STL headers;
# the important warnings will be turned on using #pragma in Globals.h
if (NOT MSVC)
- add_flags("-Wall -Wextra")
+ string(REPLACE "-w" "" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
+ string(REPLACE "-w" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
+ string(REPLACE "-w" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
+ string(REPLACE "-w" "" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
endif()
add_subdirectory (src)