summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile/NoOutputVariable.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-05-15 19:19:20 (GMT)
committerBrad King <brad.king@kitware.com>2013-05-31 14:00:42 (GMT)
commitb680824a5fdcc54c265c64ce8958f9d80acad70d (patch)
tree8e3cc0c24ccea5ad0294e191eb3f05a69a97fc69 /Tests/RunCMake/try_compile/NoOutputVariable.cmake
parent5377ac42896402510571fa0ee26c6bf32f132e21 (diff)
downloadCMake-b680824a5fdcc54c265c64ce8958f9d80acad70d.zip
CMake-b680824a5fdcc54c265c64ce8958f9d80acad70d.tar.gz
CMake-b680824a5fdcc54c265c64ce8958f9d80acad70d.tar.bz2
try_compile: Add test for bad call error cases
Add a RunCMake.try_compile test to cover cases of bad invocation of the try_compile command.
Diffstat (limited to 'Tests/RunCMake/try_compile/NoOutputVariable.cmake')
-rw-r--r--Tests/RunCMake/try_compile/NoOutputVariable.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/NoOutputVariable.cmake b/Tests/RunCMake/try_compile/NoOutputVariable.cmake
new file mode 100644
index 0000000..3b9cb34
--- /dev/null
+++ b/Tests/RunCMake/try_compile/NoOutputVariable.cmake
@@ -0,0 +1,2 @@
+try_compile(RESULT ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src.c
+ OUTPUT_VARIABLE)