diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-09-14 17:26:43 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2020-09-23 16:28:37 (GMT) |
commit | 357e2ef429b5245de4f2f5fc7ba7b8089d90bb1c (patch) | |
tree | 77b39aa9c625e80699a3998be433cde4f5dc9d88 /Tests/RunCMake/CheckSourceRuns/NotEnabledLanguage.cmake | |
parent | 10ae907de07c26820a765c6a516d1f4baa46161d (diff) | |
download | CMake-357e2ef429b5245de4f2f5fc7ba7b8089d90bb1c.zip CMake-357e2ef429b5245de4f2f5fc7ba7b8089d90bb1c.tar.gz CMake-357e2ef429b5245de4f2f5fc7ba7b8089d90bb1c.tar.bz2 |
CheckSoureRuns: Add a unified way to check if a source runs
Diffstat (limited to 'Tests/RunCMake/CheckSourceRuns/NotEnabledLanguage.cmake')
-rw-r--r-- | Tests/RunCMake/CheckSourceRuns/NotEnabledLanguage.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/CheckSourceRuns/NotEnabledLanguage.cmake b/Tests/RunCMake/CheckSourceRuns/NotEnabledLanguage.cmake new file mode 100644 index 0000000..e16cec2 --- /dev/null +++ b/Tests/RunCMake/CheckSourceRuns/NotEnabledLanguage.cmake @@ -0,0 +1,3 @@ + +include(CheckSourceRuns) +check_source_runs(C "int main() {return 0;}" SHOULD_BUILD) |