diff options
author | Ruslan Baratov <ruslan_baratov@yahoo.com> | 2016-06-25 11:48:31 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2016-06-25 11:48:31 (GMT) |
commit | 11c3a8dc11eae4305409afbb8d7fa66ee31d41de (patch) | |
tree | f3249ace392774883e5f2209ab54147f5f6831bb /Modules/CMakeIOSInstallCombined.cmake | |
parent | aff1e77f480f72b1a517ae9b7d54e56b30fab4b3 (diff) | |
download | CMake-11c3a8dc11eae4305409afbb8d7fa66ee31d41de.zip CMake-11c3a8dc11eae4305409afbb8d7fa66ee31d41de.tar.gz CMake-11c3a8dc11eae4305409afbb8d7fa66ee31d41de.tar.bz2 |
CMakeIOSInstallCombined: add some sanity checks
Diffstat (limited to 'Modules/CMakeIOSInstallCombined.cmake')
-rw-r--r-- | Modules/CMakeIOSInstallCombined.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/CMakeIOSInstallCombined.cmake b/Modules/CMakeIOSInstallCombined.cmake index d700011..234322c 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}") |