summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-07 13:52:12 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-11-07 13:52:25 (GMT)
commit4e047870bc5ec2564e8b76d5565ecb6b17929bc3 (patch)
tree6a75be64d8fede1d4351f8b7bb703d23f2a25860 /Modules
parent322eed615ce9adbef43a5933aa8028b32b975c06 (diff)
parent2d5403ecaa4faa5524902a6da86d62857e13c6bb (diff)
downloadCMake-4e047870bc5ec2564e8b76d5565ecb6b17929bc3.zip
CMake-4e047870bc5ec2564e8b76d5565ecb6b17929bc3.tar.gz
CMake-4e047870bc5ec2564e8b76d5565ecb6b17929bc3.tar.bz2
Merge topic 'CheckCompilerFlag-Swift'
2d5403ecaa CheckCompilerFlag: Add Swift Support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7865
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Internal/CheckFlagCommonConfig.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Internal/CheckFlagCommonConfig.cmake b/Modules/Internal/CheckFlagCommonConfig.cmake
index c011c24..f8481cd 100644
--- a/Modules/Internal/CheckFlagCommonConfig.cmake
+++ b/Modules/Internal/CheckFlagCommonConfig.cmake
@@ -48,6 +48,8 @@ macro(CMAKE_CHECK_FLAG_COMMON_INIT _FUNC _LANG _SRC _PATTERNS)
FAIL_REGEX "argument unused during compilation: .*") # Clang
elseif("${_LANG}" STREQUAL "ISPC")
set(${_SRC} "float func(uniform int32, float a) { return a / 2.25; }")
+ elseif("${_LANG}" STREQUAL "Swift")
+ set(${_SRC} "func blarpy() { }")
else()
message (SEND_ERROR "${_FUNC}: ${_LANG}: unknown language.")
return()