find_package(OPENAL) does not play nice with our current library naming nonvention
authorMartijn Berger <martijn.berger@gmail.com>
Tue, 24 Dec 2013 12:21:56 +0000 (13:21 +0100)
committerMartijn Berger <martijn.berger@gmail.com>
Tue, 24 Dec 2013 12:21:56 +0000 (13:21 +0100)
CMakeLists.txt

index 0d53015e994da84b26e6f7373fa801aef5acc59e..106c80762aff830ba4169aac0ebb2ba82e16420c 100644 (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)