From f625be61a26c5fae313504203a0bdedd62aa15ce Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 7 Feb 2016 13:30:28 +0100 Subject: [PATCH] - fixed: CMake should not disable OpenAL on Windows if it can't find the library (which is neither needed nor requested anymore.) --- src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5d508c9118..5d20ddf7c2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -226,7 +226,11 @@ if( NOT NO_OPENAL ) set( ZDOOM_LIBS ${OPENAL_LIBRARY} ${ZDOOM_LIBS} ) endif() else() - set( NO_OPENAL ON ) + if ( NOT WIN32 ) + set( NO_OPENAL ON ) + else() + include_directories( ${OPENAL_INCLUDE_DIR} ) + endif() endif() endif()