From 764c44db02c384778c8212adf5f9096d22a2aa3a Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 14 Aug 2024 12:04:36 +0200 Subject: [PATCH] cmake/test: don't test swift on ios/tvos platform --- cmake/test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/test/CMakeLists.txt b/cmake/test/CMakeLists.txt index f53a3ea2dd..891ecb55c0 100644 --- a/cmake/test/CMakeLists.txt +++ b/cmake/test/CMakeLists.txt @@ -27,7 +27,9 @@ add_feature_info("TEST_SHARED" TEST_SHARED "Test linking with shared library") option(TEST_STATIC "Test linking to static SDL2 library" ON) add_feature_info("TEST_STATIC" TEST_STATIC "Test linking with static library") -if(APPLE) +# FIXME: how to target ios/tvos with Swift? +# https://gitlab.kitware.com/cmake/cmake/-/issues/20104 +if(APPLE AND CMAKE_SYSTEM_NAME MATCHES ".*(Darwin|MacOS).*") # multiple values for CMAKE_OSX_ARCHITECTURES not supported with Swift list(LENGTH CMAKE_OSX_ARCHITECTURES count_osx_archs) if(count_osx_archs LESS_EQUAL 1)