From 0a43726057af2e40d7cd0904300b9e726189d774 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sat, 15 May 2010 14:10:28 -0500 Subject: [PATCH] Fix error on forcing inclusion of OpenGL headers on Windows --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.39.5