summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CheckSourceCompiles/UnknownArgument.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-15 13:40:20 (GMT)
committerBrad King <brad.king@kitware.com>2020-10-15 13:42:56 (GMT)
commitc4c636cef59edabdbfe278ea037ac06ca7d09d35 (patch)
tree5953265f522abe0d5d71edd84a4ec21fa8e2df7b /Tests/RunCMake/CheckSourceCompiles/UnknownArgument.cmake
parent1e519df0259677df67b5e7d21e1f189d655ddbd3 (diff)
downloadCMake-c4c636cef59edabdbfe278ea037ac06ca7d09d35.zip
CMake-c4c636cef59edabdbfe278ea037ac06ca7d09d35.tar.gz
CMake-c4c636cef59edabdbfe278ea037ac06ca7d09d35.tar.bz2
Tests: Add cases for CheckSource{Compiles,Runs} bad arguments
Diffstat (limited to 'Tests/RunCMake/CheckSourceCompiles/UnknownArgument.cmake')
-rw-r--r--Tests/RunCMake/CheckSourceCompiles/UnknownArgument.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/CheckSourceCompiles/UnknownArgument.cmake b/Tests/RunCMake/CheckSourceCompiles/UnknownArgument.cmake
new file mode 100644
index 0000000..3b861da
--- /dev/null
+++ b/Tests/RunCMake/CheckSourceCompiles/UnknownArgument.cmake
@@ -0,0 +1,5 @@
+
+enable_language (C)
+include(CheckSourceCompiles)
+
+check_source_compiles(C "int main() {return 0;}" SHOULD_BUILD SRC_EXT C BAD)