Fix selection logic for sound libraries

HAS_XX is used elsewhere in the project to select optional sources,
will only be true if the lib is available on the system, and the
user asked to use it.
This commit is contained in:
Gareth Francis
2019-06-30 12:00:48 +01:00
parent 708139f56e
commit d4ca6f8a43
+1 -1
View File
@@ -405,7 +405,7 @@ elseif(LINUX)
set(HAS_OSS TRUE)
endif()
if(NOT OSS_FOUND AND NOT JACK_FOUND AND NOT ALSA_FOUND AND NOT PULSE_FOUND)
if( NOT (HAS_OSS OR HAS_JACK OR HAS_ALSA OR HAS_PULSE) )
message(
FATAL_ERROR
"No sound libraries found (or selected). You will require at least one."