projects
/
apitrace
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51c1ef8
)
More warnings when building with CMake.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 15 Nov 2010 16:09:40 +0000
(16:09 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 15 Nov 2010 16:09:40 +0000
(16:09 +0000)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 9e590fd94cf1537711c0290d4fd78f4356a5818e..9ae07409de8c3cfd9e1f1455d3b5403f4b170808 100644
(file)
--- 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)