summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Make/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-15 13:05:51 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-07-15 13:05:51 (GMT)
commit77fa27a9f5875334a11caf2cbbb3790edc836095 (patch)
tree09487c98fc0b80f65c61bbca02c1048f37aeb1a9 /Tests/RunCMake/Make/RunCMakeTest.cmake
parent5bd01a4b695e68efb5e6c91fb726d160ef911aec (diff)
parentf0cad1939f10ccdcf1b5e8ad150b7e10471f92a3 (diff)
downloadCMake-77fa27a9f5875334a11caf2cbbb3790edc836095.zip
CMake-77fa27a9f5875334a11caf2cbbb3790edc836095.tar.gz
CMake-77fa27a9f5875334a11caf2cbbb3790edc836095.tar.bz2
Merge topic 'makefile-target-messages'
f0cad193 Tests: Add test for TARGET_MESSAGES global property 1d398478 Makefile: Optionally disable target completion messages in build output d560b46f CMakeGenericSystem: Recognize Watcom WMake generator as Makefile generator
Diffstat (limited to 'Tests/RunCMake/Make/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/Make/RunCMakeTest.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/RunCMake/Make/RunCMakeTest.cmake b/Tests/RunCMake/Make/RunCMakeTest.cmake
new file mode 100644
index 0000000..c6bbd03
--- /dev/null
+++ b/Tests/RunCMake/Make/RunCMakeTest.cmake
@@ -0,0 +1,17 @@
+include(RunCMake)
+
+function(run_TargetMessages case)
+ set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/TargetMessages-${case}-build)
+ set(RunCMake_TEST_NO_CLEAN 1)
+ file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}")
+ file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}")
+ set(RunCMake_TEST_OPTIONS "${ARGN}")
+ run_cmake(TargetMessages-${case})
+ run_cmake_command(TargetMessages-${case}-build ${CMAKE_COMMAND} --build .)
+endfunction()
+
+run_TargetMessages(ON)
+run_TargetMessages(OFF)
+
+run_TargetMessages(VAR-ON -DCMAKE_TARGET_MESSAGES=ON)
+run_TargetMessages(VAR-OFF -DCMAKE_TARGET_MESSAGES=OFF)