]> git.cworth.org Git - apitrace/commitdiff
More warnings when building with CMake.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 15 Nov 2010 16:09:40 +0000 (16:09 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 15 Nov 2010 16:09:40 +0000 (16:09 +0000)
CMakeLists.txt

index 9e590fd94cf1537711c0290d4fd78f4356a5818e..9ae07409de8c3cfd9e1f1455d3b5403f4b170808 100644 (file)
@@ -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)