Patch for CMakeLists.txt to build with new OpenAL libs on VS2012.

Because of crashing issue with old Creative Labs OpenAL on Windows 8 x64.
This commit is contained in:
Jürgen Herrmann
2013-05-15 11:26:57 +00:00
parent 98beda156c
commit 7b9a321a79
2 changed files with 19 additions and 7 deletions

View File

@@ -984,7 +984,11 @@ elseif(WIN32)
if(WITH_OPENAL)
set(OPENAL ${LIBDIR}/openal)
set(OPENAL_INCLUDE_DIR ${OPENAL}/include)
set(OPENAL_LIBRARY wrap_oal)
if(MSVC11)
set(OPENAL_LIBRARY openal32)
else()
set(OPENAL_LIBRARY wrap_oal)
endif()
set(OPENAL_LIBPATH ${OPENAL}/lib)
endif()