CMake fix so MSVC works again. Fix suggested by Tamito Kajiyama.

This commit is contained in:
Mitchell Stokes 2011-01-02 10:21:03 +00:00
parent 8c86d2da3a
commit f6a034a481

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