From 66369645b545d5ace07b7d58b65ca97b3f43a740 Mon Sep 17 00:00:00 2001 From: Jonny Paton Date: Wed, 24 Jan 2018 16:52:07 -0800 Subject: [PATCH] Install extlibs on iOS if needed --- CMakeLists.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c49ed140..403456bc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -488,10 +488,8 @@ elseif(SFML_OS_MACOSX) elseif(SFML_OS_IOS) - # fix CMake install rules broken for iOS (see https://public.kitware.com/Bug/view.php?id=12506) - if(SFML_OS_IOS) - install(DIRECTORY "${CMAKE_BINARY_DIR}/lib/\$ENV{CONFIGURATION}/" DESTINATION lib${LIB_SUFFIX}) - endif() + # fix CMake install rules broken for iOS (see http://public.kitware.com/Bug/view.php?id=12506) + install(DIRECTORY "${CMAKE_BINARY_DIR}/lib/\$ENV{CONFIGURATION}/" DESTINATION lib${LIB_SUFFIX}) if(NOT SFML_USE_SYSTEM_DEPS) # since the iOS libraries are built as static, we must install the SFML dependencies @@ -499,6 +497,13 @@ elseif(SFML_OS_IOS) if(SFML_BUILD_GRAPHICS) install(FILES extlibs/libs-ios/libfreetype.a DESTINATION lib) endif() + + if(SFML_BUILD_AUDIO) + install(FILES extlibs/libs-ios/libflac.a + extlibs/libs-ios/libvorbis.a + extlibs/libs-ios/libogg.a + DESTINATION lib) + endif() endif() elseif(SFML_OS_ANDROID)