diff options
author | Brad King <brad.king@kitware.com> | 2020-10-15 13:40:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-15 13:42:56 (GMT) |
commit | c4c636cef59edabdbfe278ea037ac06ca7d09d35 (patch) | |
tree | 5953265f522abe0d5d71edd84a4ec21fa8e2df7b /Tests/RunCMake/CheckSourceCompiles/UnknownArgument.cmake | |
parent | 1e519df0259677df67b5e7d21e1f189d655ddbd3 (diff) | |
download | CMake-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.cmake | 5 |
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) |