disallow disabling WITH_SAMPLERATE if any audio outputs are enabled.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 21 Nov 2010 16:32:11 +0000 (16:32 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 21 Nov 2010 16:32:11 +0000 (16:32 +0000)
CMakeLists.txt

index 6a4e063d1ea2b42042bf81dce3e7b9ea9793feca..8abd97b7a5bf24bbf64bd1c42fff61b900837c40 100644 (file)
@@ -141,6 +141,10 @@ IF(NOT WITH_INSTALL AND WITH_PYTHON_INSTALL)
        MESSAGE("WARNING: WITH_PYTHON_INSTALL needs WITH_INSTALL")
 ENDIF(NOT WITH_INSTALL AND WITH_PYTHON_INSTALL)
 
+IF(NOT WITH_SAMPLERATE AND (WITH_OPENAL OR WITH_SDL OR WITH_JACK))
+       MESSAGE(FATAL_ERROR "WITH_OPENAL/WITH_SDL/WITH_JACK need WITH_SAMPLERATE")
+ENDIF(NOT WITH_SAMPLERATE AND (WITH_OPENAL OR WITH_SDL OR WITH_JACK))
+
 TEST_SSE_SUPPORT()
 
 # disabled for now, not supported