From de3625d992ed123821a559e68317dcc43009d817 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 19 Oct 2019 07:42:28 -0700 Subject: [PATCH] Fix linkage of OpenAL tests Now we no longer list OpenAL a s apublic dependency of SimGear, we need to explicitly link the tests against OpenAL, since they use it directly, in all cases. --- simgear/sound/CMakeLists.txt | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/simgear/sound/CMakeLists.txt b/simgear/sound/CMakeLists.txt index 884e9520..c63556bb 100644 --- a/simgear/sound/CMakeLists.txt +++ b/simgear/sound/CMakeLists.txt @@ -38,28 +38,13 @@ if(ENABLE_TESTS AND ENABLE_SOUND) COMPILE_DEFINITIONS "SRC_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}\"" ) endfunction() - set( SOUND_TEST_LIBS - ${TEST_LIBS} - ) + set( SOUND_TEST_LIBS ${TEST_LIBS} ) if (USE_AEONWAVE) - if (SIMGEAR_SHARED) - else() - set(SOUND_TEST_LIBS ${SOUND_TEST_LIBS} - ${AAX_LIBRARY} - ) - endif() - + set(SOUND_TEST_LIBS ${SOUND_TEST_LIBS} ${AAX_LIBRARY}) create_test(aeonwave_test1) - else () - if (SIMGEAR_SHARED) - else() - set(SOUND_TEST_LIBS ${SOUND_TEST_LIBS} - ${OPENAL_LIBRARY} - ) - endif() - + set(SOUND_TEST_LIBS ${SOUND_TEST_LIBS} ${OPENAL_LIBRARY}) create_test(openal_test1) endif()