summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CheckSourceRuns/CheckOBJCSourceRuns.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-11-30 17:34:24 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-11-30 17:34:31 (GMT)
commitb13961fb0fb68280fcad178ab0418d6fdec54c25 (patch)
treedd054349e707eb0eddce059a357443efe2200573 /Tests/RunCMake/CheckSourceRuns/CheckOBJCSourceRuns.cmake
parent8187bd2f4bc54c9003cb0034b21530e3bfd24e8d (diff)
parentf3d4254b3d2437938440257cd989cb87da517e01 (diff)
downloadCMake-b13961fb0fb68280fcad178ab0418d6fdec54c25.zip
CMake-b13961fb0fb68280fcad178ab0418d6fdec54c25.tar.gz
CMake-b13961fb0fb68280fcad178ab0418d6fdec54c25.tar.bz2
Merge topic 'check-lang-conditions'
f3d4254b3d Check*: Tolerate variables set with names of languages 01d91ae5f2 Tests: Fix RunCMake.Check* conditions for enabling Fortran Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robert.maynard@kitware.com> Merge-request: !5536
Diffstat (limited to 'Tests/RunCMake/CheckSourceRuns/CheckOBJCSourceRuns.cmake')
-rw-r--r--Tests/RunCMake/CheckSourceRuns/CheckOBJCSourceRuns.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/CheckSourceRuns/CheckOBJCSourceRuns.cmake b/Tests/RunCMake/CheckSourceRuns/CheckOBJCSourceRuns.cmake
index 55f28f3..b828352 100644
--- a/Tests/RunCMake/CheckSourceRuns/CheckOBJCSourceRuns.cmake
+++ b/Tests/RunCMake/CheckSourceRuns/CheckOBJCSourceRuns.cmake
@@ -1,6 +1,8 @@
enable_language (OBJC)
include(CheckSourceRuns)
+set(OBJC 1) # test that this is tolerated
+
check_source_runs(OBJC [[
#import <Foundation/Foundation.h>
int main() {