For static builds, ensure we find the sound library
Should fix Erik’s issue with AeonWave.
This commit is contained in:
@@ -10,11 +10,15 @@ set(SIMGEAR_HEADLESS @SIMGEAR_HEADLESS@)
|
||||
set(SIMGEAR_SOUND @ENABLE_SOUND@)
|
||||
set(USE_AEONWAVE @USE_AEONWAVE@)
|
||||
set(ENABLE_ASAN @ENABLE_ASAN@)
|
||||
set(SIMGEAR_SHARED @SIMGEAR_SHARED@)
|
||||
|
||||
# OpenAL isn't a public dependency, so maybe not needed
|
||||
#if (SIMGEAR_SOUND)
|
||||
# find_dependency(OpenAL)
|
||||
#endif()
|
||||
if (NOT SIMGEAR_SHARED AND SIMGEAR_SOUND)
|
||||
if (USE_AEONWAVE)
|
||||
find_dependency(AAX)
|
||||
else()
|
||||
find_dependency(OpenAL)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# SSE/SSE2 support
|
||||
|
||||
@@ -36,6 +40,4 @@ if (ENABLE_GDAL)
|
||||
find_dependency(GDAL)
|
||||
endif()
|
||||
|
||||
set(ENABLE_OPENMP @ENABLE_OPENMP@)
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/SimGearTargets.cmake")
|
||||
|
||||
Reference in New Issue
Block a user