diff options
author | Evan Wilde <etceterawilde@gmail.com> | 2022-11-03 15:58:08 (GMT) |
---|---|---|
committer | Evan Wilde <etceterawilde@gmail.com> | 2022-11-04 16:32:06 (GMT) |
commit | 2d5403ecaa4faa5524902a6da86d62857e13c6bb (patch) | |
tree | 1c25d15c48459625ccb84965811c18462785daff /Tests/RunCMake/CheckCompilerFlag/RunCMakeTest.cmake | |
parent | 4fc3f7e88ff7d5f734ed5d6cf43b6420e869ef19 (diff) | |
download | CMake-2d5403ecaa4faa5524902a6da86d62857e13c6bb.zip CMake-2d5403ecaa4faa5524902a6da86d62857e13c6bb.tar.gz CMake-2d5403ecaa4faa5524902a6da86d62857e13c6bb.tar.bz2 |
CheckCompilerFlag: Add Swift Support
Plumb through Swift `check_compiler_flag` support.
Add tests to check that valid flags work and invalid flags don't.
Diffstat (limited to 'Tests/RunCMake/CheckCompilerFlag/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/CheckCompilerFlag/RunCMakeTest.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CheckCompilerFlag/RunCMakeTest.cmake b/Tests/RunCMake/CheckCompilerFlag/RunCMakeTest.cmake index b0e025c..81429a6 100644 --- a/Tests/RunCMake/CheckCompilerFlag/RunCMakeTest.cmake +++ b/Tests/RunCMake/CheckCompilerFlag/RunCMakeTest.cmake @@ -32,3 +32,7 @@ endif() if(APPLE) run_cmake(HeaderpadWorkaround) endif() + +if(CMake_TEST_Swift) + run_cmake(CheckCompilerFlagSwift) +endif() |