- fixed: CMake should not disable OpenAL on Windows if it can't find the library (which is neither needed nor requested anymore.)

This commit is contained in:
Christoph Oelckers 2016-02-07 13:30:28 +01:00
parent 111e97e47c
commit f625be61a2
1 changed files with 5 additions and 1 deletions

View File

@ -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()