]> git.jsancho.org Git - lugaru.git/commitdiff
Fix error on forcing inclusion of OpenGL headers on Windows
authorNeal Gompa <ngompa13@gmail.com>
Sat, 15 May 2010 19:10:28 +0000 (14:10 -0500)
committerNeal Gompa <ngompa13@gmail.com>
Sat, 15 May 2010 19:10:28 +0000 (14:10 -0500)
CMakeLists.txt

index 7e2eac07cea80530386569dc58d60ba4cb293d3e..997b41b894d231bbd6307e77e181b30c0534f22c 100644 (file)
@@ -167,10 +167,12 @@ if(NOT WIN32)
        if (LUGARU_FORCE_INTERNAL_OPENGL)
                include_directories("${DEPDIR}/OpenGL")
        endif (LUGARU_FORCE_INTERNAL_OPENGL)
-elseif(NOT WIN32)
-       include_directories("${DEPDIR}/OpenGL")
 endif(NOT WIN32)
 
+if(WIN32)
+       include_directories("${DEPDIR}/OpenGL")
+endif(WIN32)
+
 option (LUGARU_FORCE_INTERNAL_OPENAL "Force internal libOpenAL, even if there's a system version" False)
 if (NOT LUGARU_FORCE_INTERNAL_OPENAL)
        find_package(OpenAL REQUIRED)