summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/RunCMake.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-14 19:48:34 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-15 13:08:57 (GMT)
commit85c2626babf40d704f133fe49506d25f0a674b5f (patch)
tree1c039701608f5eb18a26dd1708578bc90a1ff24c /Tests/RunCMake/RunCMake.cmake
parentcdc53b62c20605467334ecb80c474533e04ff26c (diff)
downloadCMake-85c2626babf40d704f133fe49506d25f0a674b5f.zip
CMake-85c2626babf40d704f133fe49506d25f0a674b5f.tar.gz
CMake-85c2626babf40d704f133fe49506d25f0a674b5f.tar.bz2
Deprecate Visual Studio 6 generator
Update documentation to mark the generator deprecated. Add a warning at the end of generation plus an option to turn off the warning.
Diffstat (limited to 'Tests/RunCMake/RunCMake.cmake')
-rw-r--r--Tests/RunCMake/RunCMake.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake
index 6333703..e5d3590 100644
--- a/Tests/RunCMake/RunCMake.cmake
+++ b/Tests/RunCMake/RunCMake.cmake
@@ -51,6 +51,9 @@ function(run_cmake test)
if(APPLE)
list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0025=NEW)
endif()
+ if(RunCMake_GENERATOR STREQUAL "Visual Studio 6" AND NOT RunCMake_WARN_VS6)
+ list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_WARN_VS6=OFF)
+ endif()
if(RunCMake_MAKE_PROGRAM)
list(APPEND RunCMake_TEST_OPTIONS "-DCMAKE_MAKE_PROGRAM=${RunCMake_MAKE_PROGRAM}")
endif()