Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2010-12-27 12:33:32 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2010-12-27 12:33:32 +0300
commit71eb4a23125812d50d1a6854eeceb10c97311619 (patch)
tree72baf9be6f7753f0d549e8062af0aea20d56cf87 /CMakeLists.txt
parent6278cda10635d10335188908b9fee9d0aec9022c (diff)
Work around cmake error on Windows.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3001b605d4..c1e22f9ab0f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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