summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCCompiler.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-31 15:26:08 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-31 15:26:08 (GMT)
commita1221905092c09603c0b59dd0ed05bfe9f1f22ef (patch)
tree58a3a7e0fff71f02f09d6b16893bf7f0601ea605 /Modules/CMakeCCompiler.cmake.in
parentc791fb12544926bc5870a61735dc2ec62940a6f6 (diff)
downloadCMake-a1221905092c09603c0b59dd0ed05bfe9f1f22ef.zip
CMake-a1221905092c09603c0b59dd0ed05bfe9f1f22ef.tar.gz
CMake-a1221905092c09603c0b59dd0ed05bfe9f1f22ef.tar.bz2
Xcode: Detect CURRENT_ARCH for use by generator
During compiler identification, extract the Xcode `CURRENT_ARCH` value and save it for later use by the Xcode generator in an internal compiler information variable. This will be useful to know the locations of object files when only one architecture is built.
Diffstat (limited to 'Modules/CMakeCCompiler.cmake.in')
-rw-r--r--Modules/CMakeCCompiler.cmake.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeCCompiler.cmake.in b/Modules/CMakeCCompiler.cmake.in
index ab068a2..102ab69 100644
--- a/Modules/CMakeCCompiler.cmake.in
+++ b/Modules/CMakeCCompiler.cmake.in
@@ -13,6 +13,7 @@ set(CMAKE_C_PLATFORM_ID "@CMAKE_C_PLATFORM_ID@")
set(CMAKE_C_SIMULATE_ID "@CMAKE_C_SIMULATE_ID@")
set(CMAKE_C_SIMULATE_VERSION "@CMAKE_C_SIMULATE_VERSION@")
@SET_MSVC_C_ARCHITECTURE_ID@
+@SET_CMAKE_XCODE_CURRENT_ARCH@
set(CMAKE_AR "@CMAKE_AR@")
set(CMAKE_GCC_AR "@CMAKE_GCC_AR@")
set(CMAKE_RANLIB "@CMAKE_RANLIB@")