aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-06-11 18:24:43 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-06-20 16:48:37 -0700
commit685b362aa2f221cb45b8e8b9087bf675d981c447 (patch)
tree138510b42c42f31b642eddef4639192ae6c8e847 /CMakeLists.txt
parent4b62d0ee0d098eaf0dcef1531e5aed8b449dc187 (diff)
downloadpiglit-685b362aa2f221cb45b8e8b9087bf675d981c447.tar.gz
cmake: For MSVC, add "include/msvc/c99" to include path (v3)
v2: Place directive in `if (MSVC)` block`, per Jose. v3: Really do what I said in v2. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0aad196a..effa8d88 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -119,6 +119,8 @@ if (NOT MSVC)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wdeclaration-after-statement")
ENDIF (C_COMPILER_FLAG_WDECL_AFTER_STMT)
else ()
+ include_directories("include/msvc/c99")
+
# -Wall or (/Wall) is actually supported by MSVC and would be detected
# by CHECK_C_COMPILER_FLAG above, but is very pedantic, causing
# thousand of warnings when including windows.h.