summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/RunCMake.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-21 17:41:09 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-21 17:45:45 (GMT)
commit81f9c9e892e6b4ee873361b3750a87760ebe8a2d (patch)
tree1ea0ed8107657eef4362cefa603bf3aab7da615d /Tests/RunCMake/RunCMake.cmake
parent294cf948dc37799e1980685afbf1fa585ad5b0fb (diff)
downloadCMake-81f9c9e892e6b4ee873361b3750a87760ebe8a2d.zip
CMake-81f9c9e892e6b4ee873361b3750a87760ebe8a2d.tar.gz
CMake-81f9c9e892e6b4ee873361b3750a87760ebe8a2d.tar.bz2
Deprecate Visual Studio 8 2005 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 04eadd5..26312c4 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 MATCHES "^Visual Studio 8 2005" AND NOT RunCMake_WARN_VS8)
+ list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_WARN_VS8=OFF)
+ endif()
if(RunCMake_MAKE_PROGRAM)
list(APPEND RunCMake_TEST_OPTIONS "-DCMAKE_MAKE_PROGRAM=${RunCMake_MAKE_PROGRAM}")
endif()