Work around cmake error on Windows.

This commit is contained in:
Nathan Letwory
2010-12-27 09:33:32 +00:00
parent 6278cda106
commit 71eb4a2312

View File

@@ -945,7 +945,11 @@ endif()
#-----------------------------------------------------------------------------
# Configure OpenGL.
find_package(OpenGL)
blender_include_dirs(${OPENGL_INCLUDE_DIR})
if(MSVC)
include_directories(${OPENGL_INCLUDE_DIR})
else()
blender_include_dirs(${OPENGL_INCLUDE_DIR})
endif()
# unset(OPENGL_LIBRARIES CACHE) # not compat with older cmake
# unset(OPENGL_xmesa_INCLUDE_DIR CACHE) # not compat with older cmake