CMakeIOSInstallCombined: add some sanity checks
This commit is contained in:
parent
aff1e77f48
commit
11c3a8dc11
|
@ -254,6 +254,13 @@ function(ios_install_combined target destination)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
set(_lipo_path ${output})
|
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_CONFIG "${CMAKE_INSTALL_CONFIG_NAME}")
|
||||||
set(CURRENT_TARGET "${target}")
|
set(CURRENT_TARGET "${target}")
|
||||||
|
|
Loading…
Reference in New Issue