find_package(OPENAL) does not play nice with our current library naming nonvention

This commit is contained in:
Martijn Berger
2013-12-24 13:21:56 +01:00
parent 3ffba79ac6
commit e1b322b250

View File

@@ -1506,18 +1506,13 @@ elseif(WIN32)
if(WITH_OPENAL)
set(OPENAL ${LIBDIR}/openal)
set(OPENALDIR ${LIBDIR}/openal)
find_package(OPENAL)
if(NOT OPENAL_FOUND)
message(WARNING "Setting static openAL paths")
set(OPENAL_INCLUDE_DIR ${OPENAL}/include)
if(MSVC11 OR MSVC12)
set(OPENAL_LIBRARY openal32)
else()
set(OPENAL_LIBRARY wrap_oal)
endif()
set(OPENAL_INCLUDE_DIR ${OPENAL}/include)
if(MSVC11 OR MSVC12)
set(OPENAL_LIBRARY openal32)
else()
set(OPENAL_LIBRARY wrap_oal)
endif()
set(OPENAL_LIBPATH ${OPENAL}/lib)
endif()
endif()
if(WITH_CODEC_SNDFILE)