From 1791f62e36f9aab5266ba79f4e453089769238d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 15 Nov 2010 16:09:40 +0000 Subject: [PATCH] More warnings when building with CMake. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e590fd..9ae0740 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,11 @@ if (MSVC) # Silence several MSVC pedantic warnings add_definitions (-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS) add_definitions (-D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS) -endif (MSVC) + + add_definitions (-W4) +else () + add_definitions (-Wall) +endif () # Use bundled ZLIB if system one can't be found if (NOT ZLIB_FOUND) -- 2.45.2