diff options
author | Brad King <brad.king@kitware.com> | 2020-11-25 12:52:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-11-25 14:11:21 (GMT) |
commit | f3d4254b3d2437938440257cd989cb87da517e01 (patch) | |
tree | 8e71b84d4ad76e9ec895dd37f8f57f9fb5e08cc5 /Tests/RunCMake/CheckSourceRuns/CheckOBJCSourceRuns.cmake | |
parent | 01d91ae5f26c25fe11e4eedd16ed8d8163636015 (diff) | |
download | CMake-f3d4254b3d2437938440257cd989cb87da517e01.zip CMake-f3d4254b3d2437938440257cd989cb87da517e01.tar.gz CMake-f3d4254b3d2437938440257cd989cb87da517e01.tar.bz2 |
Check*: Tolerate variables set with names of languages
Fix the language checks added by commit 90dead024c (CheckCompilerFlag:
unified way to check compiler flags per language, 2020-09-25,
v3.19.0-rc1~88^2), commit 10ae907de0 (CheckSoureCompiles: Add a unified
way to check if a source compiles, 2020-09-14, v3.19.0-rc1~118^2~1), and
commit 357e2ef429 (CheckSoureRuns: Add a unified way to check if a
source runs, 2020-09-14, v3.19.0-rc1~118^2) to work when variables of
the language names are set.
Fixes: #21500
Diffstat (limited to 'Tests/RunCMake/CheckSourceRuns/CheckOBJCSourceRuns.cmake')
-rw-r--r-- | Tests/RunCMake/CheckSourceRuns/CheckOBJCSourceRuns.cmake | 2 |
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() { |