mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
CMake: Don't try to build FMOD Ex audio module for arm64
This commit is contained in:
parent
662ace0173
commit
113dd6a357
@ -5,7 +5,7 @@ elseif(NOT HAVE_FMODEX AND NOT HAVE_OPENAL)
|
|||||||
"You must have an audio backend for audio support! Turn off HAVE_AUDIO to ignore this.")
|
"You must have an audio backend for audio support! Turn off HAVE_AUDIO to ignore this.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_FMODEX)
|
if(HAVE_FMODEX AND NOT (APPLE AND CMAKE_OSX_ARCHITECTURES STREQUAL "arm64"))
|
||||||
set(P3FMOD_HEADERS
|
set(P3FMOD_HEADERS
|
||||||
config_fmodAudio.h
|
config_fmodAudio.h
|
||||||
fmodAudioManager.h
|
fmodAudioManager.h
|
||||||
@ -21,6 +21,17 @@ if(HAVE_FMODEX)
|
|||||||
set_target_properties(p3fmod_audio PROPERTIES DEFINE_SYMBOL BUILDING_FMOD_AUDIO)
|
set_target_properties(p3fmod_audio PROPERTIES DEFINE_SYMBOL BUILDING_FMOD_AUDIO)
|
||||||
target_link_libraries(p3fmod_audio panda PKG::FMODEX)
|
target_link_libraries(p3fmod_audio panda PKG::FMODEX)
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
# The FMOD EX thirdparty library is not available for arm64, so we have to
|
||||||
|
# exclude it from the target architectures.
|
||||||
|
get_target_property(_archs p3fmod_audio OSX_ARCHITECTURES)
|
||||||
|
|
||||||
|
if(_archs AND _archs MATCHES "arm64")
|
||||||
|
list(REMOVE_ITEM _archs "arm64")
|
||||||
|
set_target_properties(p3fmod_audio PROPERTIES OSX_ARCHITECTURES "${_archs}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
install(TARGETS p3fmod_audio
|
install(TARGETS p3fmod_audio
|
||||||
EXPORT FMOD COMPONENT FMOD
|
EXPORT FMOD COMPONENT FMOD
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user