[test-suite] r270506 - cmake: Require cmake 3.4 for the xcode_sdk based caches
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 15:32:32 PDT 2016
Author: matze
Date: Mon May 23 17:32:32 2016
New Revision: 270506
URL: http://llvm.org/viewvc/llvm-project?rev=270506&view=rev
Log:
cmake: Require cmake 3.4 for the xcode_sdk based caches
Earlier versions lead to subtle failures when using the caches.
Modified:
test-suite/trunk/cmake/caches/util/xcode_sdk.cmake
Modified: test-suite/trunk/cmake/caches/util/xcode_sdk.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/util/xcode_sdk.cmake?rev=270506&r1=270505&r2=270506&view=diff
==============================================================================
--- test-suite/trunk/cmake/caches/util/xcode_sdk.cmake (original)
+++ test-suite/trunk/cmake/caches/util/xcode_sdk.cmake Mon May 23 17:32:32 2016
@@ -1,3 +1,7 @@
+# We had problems with cmake not propagating CMAKE_OSX_SYSROOT and
+# CMAKE_OSX_ARCHITECTURES to try_compile() in earlier cmakes.
+cmake_minimum_required(VERSION 3.4)
+
macro(xcrun_find VARIABLE NAME)
execute_process(COMMAND xcrun ${XCRUN_FLAGS} -f ${NAME}
OUTPUT_STRIP_TRAILING_WHITESPACE
More information about the llvm-commits
mailing list