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(SIMGEAR_SOUND @ENABLE_SOUND@)
|
||||||
set(USE_AEONWAVE @USE_AEONWAVE@)
|
set(USE_AEONWAVE @USE_AEONWAVE@)
|
||||||
set(ENABLE_ASAN @ENABLE_ASAN@)
|
set(ENABLE_ASAN @ENABLE_ASAN@)
|
||||||
|
set(SIMGEAR_SHARED @SIMGEAR_SHARED@)
|
||||||
|
|
||||||
# OpenAL isn't a public dependency, so maybe not needed
|
if (NOT SIMGEAR_SHARED AND SIMGEAR_SOUND)
|
||||||
#if (SIMGEAR_SOUND)
|
if (USE_AEONWAVE)
|
||||||
# find_dependency(OpenAL)
|
find_dependency(AAX)
|
||||||
#endif()
|
else()
|
||||||
|
find_dependency(OpenAL)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# SSE/SSE2 support
|
# SSE/SSE2 support
|
||||||
|
|
||||||
@@ -36,6 +40,4 @@ if (ENABLE_GDAL)
|
|||||||
find_dependency(GDAL)
|
find_dependency(GDAL)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(ENABLE_OPENMP @ENABLE_OPENMP@)
|
|
||||||
|
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/SimGearTargets.cmake")
|
include("${CMAKE_CURRENT_LIST_DIR}/SimGearTargets.cmake")
|
||||||
|
|||||||
Reference in New Issue
Block a user