diff options
author | Brad King <brad.king@kitware.com> | 2016-03-15 14:11:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-15 14:11:27 (GMT) |
commit | 4ea249a387e808fa3d6c1f4648df7e094cf0d8a7 (patch) | |
tree | 4f9de7de63494aa84c6c5a44165c8a84f22b1c92 /Modules | |
parent | 44bbd2a65c0d2a405b70b96c3d643ce4b5eb82f4 (diff) | |
parent | e3fc2899c89fb075a695d6140eaadf11db85d96c (diff) | |
download | CMake-4ea249a387e808fa3d6c1f4648df7e094cf0d8a7.zip CMake-4ea249a387e808fa3d6c1f4648df7e094cf0d8a7.tar.gz CMake-4ea249a387e808fa3d6c1f4648df7e094cf0d8a7.tar.bz2 |
Merge branch 'ios-install-combined-one-arch' into release
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeIOSInstallCombined.cmake | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Modules/CMakeIOSInstallCombined.cmake b/Modules/CMakeIOSInstallCombined.cmake index f052a3b..1256f56 100644 --- a/Modules/CMakeIOSInstallCombined.cmake +++ b/Modules/CMakeIOSInstallCombined.cmake @@ -52,7 +52,14 @@ function(_ios_install_combined_get_build_setting sdk variable resultvar) endif() if(NOT output MATCHES " ${variable} = ([^\n]*)") - message(FATAL_ERROR "${variable} not found.") + if("${variable}" STREQUAL "VALID_ARCHS") + # VALID_ARCHS may be unset by user for given SDK + # (e.g. for build without simulator). + set("${resultvar}" "" PARENT_SCOPE) + return() + else() + message(FATAL_ERROR "${variable} not found.") + endif() endif() set("${resultvar}" "${CMAKE_MATCH_1}" PARENT_SCOPE) @@ -72,6 +79,9 @@ function(_ios_install_combined_get_valid_archs sdk resultvar) list(REMOVE_ITEM valid_archs "") # remove empty elements list(REMOVE_DUPLICATES valid_archs) + string(REPLACE ";" " " printable "${valid_archs}") + _ios_install_combined_message("Architectures (${sdk}): ${printable}") + set("${resultvar}" "${valid_archs}" PARENT_SCOPE) endfunction() |