summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorFilip Lundgren <45687559+ifiddynine@users.noreply.github.com>2022-01-08 03:41:18 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-01-08 15:58:03 +0100
commitd14831233df3a15b14db563156614c9ea60fcf06 (patch)
tree3a6681996431bf7bf9fe64d643769e8362b26582 /CMake
parent4936e60bb961e6ad7385bd25646e3acd0922f33f (diff)
downloadcurl-d14831233df3a15b14db563156614c9ea60fcf06.tar.gz
cmake: fix iOS CMake project generation error
Closes #8244
Diffstat (limited to 'CMake')
-rw-r--r--CMake/OtherTests.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMake/OtherTests.cmake b/CMake/OtherTests.cmake
index 73c813fe5..d710eb8e1 100644
--- a/CMake/OtherTests.cmake
+++ b/CMake/OtherTests.cmake
@@ -5,7 +5,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -236,8 +236,8 @@ endif()
unset(CMAKE_TRY_COMPILE_TARGET_TYPE)
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
- if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
- # only try this on non-macOS
+ if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "iOS")
+ # only try this on non-apple platforms
# if not cross-compilation...
include(CheckCSourceRuns)