From: José Fonseca Date: Mon, 15 Nov 2010 16:09:40 +0000 (+0000) Subject: More warnings when building with CMake. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=1791f62e36f9aab5266ba79f4e453089769238d5;p=apitrace More warnings when building with CMake. --- 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)