From: Neal Gompa Date: Sat, 15 May 2010 19:10:28 +0000 (-0500) Subject: Fix error on forcing inclusion of OpenGL headers on Windows X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=commitdiff_plain;h=0a43726057af2e40d7cd0904300b9e726189d774 Fix error on forcing inclusion of OpenGL headers on Windows --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e2eac0..997b41b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)