CMake: Disable OpenAL and JACK when AUDASPACE is disabled
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 10 Jul 2018 09:25:47 +0000 (11:25 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 10 Jul 2018 09:25:47 +0000 (11:25 +0200)
Previously CMake was raising a fatal error, which wasn't too helpful.

There is still some fatal messages about Audaspace and Game Engine,
but the latter one is on it's EOL and is removed in Blender 2.8.

CMakeLists.txt

index 46d9128646750ab0f5625e7458179ea294d15e72..da3332864785a2df607a4fef9853984b1a7da84a 100644 (file)
@@ -638,10 +638,12 @@ endif()
 
 if(NOT WITH_AUDASPACE)
        if(WITH_OPENAL)
-               message(FATAL_ERROR "WITH_OPENAL requires WITH_AUDASPACE")
+               message(WARNING "WITH_OPENAL requires WITH_AUDASPACE which is disabled")
+               set(WITH_OPENAL OFF)
        endif()
        if(WITH_JACK)
-               message(FATAL_ERROR "WITH_JACK requires WITH_AUDASPACE")
+               message(WARNING "WITH_JACK requires WITH_AUDASPACE which is disabled")
+               set(WITH_JACK OFF)
        endif()
        if(WITH_GAMEENGINE)
                message(FATAL_ERROR "WITH_GAMEENGINE requires WITH_AUDASPACE")