code cleanup: use system includes for cmake, otherwise warnings get printed in headers.

This commit is contained in:
Campbell Barton
2012-09-18 04:40:20 +00:00
parent d3737de8c2
commit 6df4c1317f
2 changed files with 2 additions and 2 deletions

View File

@@ -1106,7 +1106,7 @@ elseif(WIN32)
set(PLATFORM_LINKFLAGS_DEBUG "/NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libc.lib") set(PLATFORM_LINKFLAGS_DEBUG "/NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libc.lib")
# used in many places so include globally, like OpenGL # used in many places so include globally, like OpenGL
blender_include_dirs("${PTHREADS_INCLUDE_DIRS}") blender_include_dirs_sys("${PTHREADS_INCLUDE_DIRS}")
elseif(CMAKE_COMPILER_IS_GNUCC) elseif(CMAKE_COMPILER_IS_GNUCC)
# keep GCC specific stuff here # keep GCC specific stuff here

View File

@@ -25,7 +25,7 @@
# there are too many inter-includes so best define here # there are too many inter-includes so best define here
if(WITH_PYTHON) if(WITH_PYTHON)
blender_include_dirs("${PYTHON_INCLUDE_DIRS}") blender_include_dirs_sys("${PYTHON_INCLUDE_DIRS}")
add_definitions(-DWITH_PYTHON) add_definitions(-DWITH_PYTHON)
endif() endif()