[Cmake-commits] CMake branch, next, updated. v3.0.0-rc3-2286-g12a62a1
Brad King
brad.king at kitware.com
Mon Apr 14 09:31:38 EDT 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via 12a62a1fb19cf1dbef0c4e03f5c61c6ea37a7fbf (commit)
via 73721c7ce0dc8fc9ee07fe70746aa44284390d89 (commit)
from bdd2a1ba2175c5de36d26608e6d4589c84f04cdb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=12a62a1fb19cf1dbef0c4e03f5c61c6ea37a7fbf
commit 12a62a1fb19cf1dbef0c4e03f5c61c6ea37a7fbf
Merge: bdd2a1b 73721c7
Author: Brad King <brad.king at kitware.com>
AuthorDate: Mon Apr 14 09:31:37 2014 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Mon Apr 14 09:31:37 2014 -0400
Merge topic 'CMakeDetermineVSServicePack-warn-deprecated' into next
73721c7c CMakeDetermineVSServicePack: Add deprecation diagnostic
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=73721c7ce0dc8fc9ee07fe70746aa44284390d89
commit 73721c7ce0dc8fc9ee07fe70746aa44284390d89
Author: Brad King <brad.king at kitware.com>
AuthorDate: Thu Apr 10 11:03:41 2014 -0400
Commit: Brad King <brad.king at kitware.com>
CommitDate: Mon Apr 14 09:31:54 2014 -0400
CMakeDetermineVSServicePack: Add deprecation diagnostic
Warn project developers at runtime that the module should not be used
anymore. Issue the diagnostic only when the project requires a new
enough CMake to use the alternative. Honor the
CMAKE_(ERROR|WARN)_DEPRECATED settings.
diff --git a/Help/release/dev/CMakeDetermineVSServicePack.rst b/Help/release/dev/CMakeDetermineVSServicePack.rst
new file mode 100644
index 0000000..d9d7b41
--- /dev/null
+++ b/Help/release/dev/CMakeDetermineVSServicePack.rst
@@ -0,0 +1,6 @@
+CMakeDetermineVSServicePack
+---------------------------
+
+* The :module:`CMakeDetermineVSServicePack` module now warns that
+ it is deprecated and should not longer be used. Use the
+ :variable:`CMAKE_<LANG>_COMPILER_VERSION` variable instead.
diff --git a/Modules/CMakeDetermineVSServicePack.cmake b/Modules/CMakeDetermineVSServicePack.cmake
index 2854387..6886084 100644
--- a/Modules/CMakeDetermineVSServicePack.cmake
+++ b/Modules/CMakeDetermineVSServicePack.cmake
@@ -43,6 +43,13 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
+if(NOT CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.8)
+ message(DEPRECATION
+ "This module is deprecated and should not be used. "
+ "Use the CMAKE_<LANG>_COMPILER_VERSION variable instead."
+ )
+endif()
+
# [INTERNAL]
# Please do not call this function directly
function(_DetermineVSServicePackFromCompiler _OUT_VAR _cl_version)
-----------------------------------------------------------------------
Summary of changes:
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list