]> git.jsancho.org Git - lugaru.git/commitdiff
Removing option to not use internal OpenGL headers on Windows; headers for all Window...
authorNeal Gompa <ngompa13@gmail.com>
Sat, 15 May 2010 18:04:37 +0000 (13:04 -0500)
committerNeal Gompa <ngompa13@gmail.com>
Sat, 15 May 2010 18:04:37 +0000 (13:04 -0500)
CMakeLists.txt

index c7bc8f42a10d1e5475a88c51b33d88c6cc9ca52c..7e2eac07cea80530386569dc58d60ba4cb293d3e 100644 (file)
@@ -161,11 +161,15 @@ endif (APPLE)
 
 # Deal with dependencies...
 find_package(OpenGL REQUIRED)
-# force this include dir no matter what, so we get sane headers.
-option (LUGARU_FORCE_INTERNAL_OPENGL "Force internal OpenGL headers, even if there's a system version" True)
-if (LUGARU_FORCE_INTERNAL_OPENGL)
+# force this include dir no matter what on Windows, so we get sane headers.
+if(NOT WIN32)
+       option (LUGARU_FORCE_INTERNAL_OPENGL "Force internal OpenGL headers, even if there's a system version" True)
+       if (LUGARU_FORCE_INTERNAL_OPENGL)
+               include_directories("${DEPDIR}/OpenGL")
+       endif (LUGARU_FORCE_INTERNAL_OPENGL)
+elseif(NOT WIN32)
        include_directories("${DEPDIR}/OpenGL")
-endif (LUGARU_FORCE_INTERNAL_OPENGL)
+endif(NOT WIN32)
 
 option (LUGARU_FORCE_INTERNAL_OPENAL "Force internal libOpenAL, even if there's a system version" False)
 if (NOT LUGARU_FORCE_INTERNAL_OPENAL)