summaryrefslogtreecommitdiff
path: root/Modules/CMakeIOSInstallCombined.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/CMakeIOSInstallCombined.cmake')
-rw-r--r--Modules/CMakeIOSInstallCombined.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/CMakeIOSInstallCombined.cmake b/Modules/CMakeIOSInstallCombined.cmake
index d700011062..234322c202 100644
--- a/Modules/CMakeIOSInstallCombined.cmake
+++ b/Modules/CMakeIOSInstallCombined.cmake
@@ -254,6 +254,13 @@ function(ios_install_combined target destination)
)
endif()
set(_lipo_path ${output})
+ list(LENGTH _lipo_path len)
+ if(NOT len EQUAL 1)
+ message(FATAL_ERROR "Unexpected xcrun output: ${_lipo_path}")
+ endif()
+ if(NOT EXISTS "${_lipo_path}")
+ message(FATAL_ERROR "File not found: ${_lipo_path}")
+ endif()
set(CURRENT_CONFIG "${CMAKE_INSTALL_CONFIG_NAME}")
set(CURRENT_TARGET "${target}")