X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=CMakeLists.txt;h=7e2eac07cea80530386569dc58d60ba4cb293d3e;hb=fc49e8aa667aa912dc3ef3e49c29d40f002e2b68;hp=c7bc8f42a10d1e5475a88c51b33d88c6cc9ca52c;hpb=f171db5acc3f7a0837597fe66b8e034508a76ef5;p=lugaru.git diff --git a/CMakeLists.txt b/CMakeLists.txt index c7bc8f4..7e2eac0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)