From cae2c4cca8ea9989c316daf5ffdf09e7e41fb358 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Fri, 17 Feb 2017 01:11:41 +0000 Subject: [PATCH] [CMake] Add variable IOS to iOS toolchain This is useful for some edge cases where detecting things gets tricky. Specifically LLDB needs this to support iOS because CMake doesn't support running tests using obj-c code. llvm-svn: 295392 --- cmake/platforms/iOS.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/platforms/iOS.cmake b/cmake/platforms/iOS.cmake index 99692fd6d2a..15c7aae12c7 100644 --- a/cmake/platforms/iOS.cmake +++ b/cmake/platforms/iOS.cmake @@ -4,6 +4,7 @@ SET(CMAKE_SYSTEM_NAME Darwin) SET(CMAKE_SYSTEM_VERSION 13) SET(CMAKE_CXX_COMPILER_WORKS True) SET(CMAKE_C_COMPILER_WORKS True) +SET(IOS True) if(NOT CMAKE_OSX_SYSROOT) execute_process(COMMAND xcodebuild -version -sdk iphoneos Path