[Cmake-commits] CMake branch, next, updated. v3.0.0-rc3-2232-g67eb10b
Brad King
brad.king at kitware.com
Fri Apr 11 09:36:07 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 67eb10b2c75a477565e91964e0a1573e71d61999 (commit)
via 10da464eec31a500ab4f785438fb39f159f1175c (commit)
from 621235ab70fb796ff0bbe675ef09b742ea7dcc34 (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=67eb10b2c75a477565e91964e0a1573e71d61999
commit 67eb10b2c75a477565e91964e0a1573e71d61999
Merge: 621235a 10da464
Author: Brad King <brad.king at kitware.com>
AuthorDate: Fri Apr 11 09:36:06 2014 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri Apr 11 09:36:06 2014 -0400
Merge topic 'CMakeDetermineVSServicePack-warn-deprecated' into next
10da464e CMakeDetermineVSServicePack: Add deprecation warning
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=10da464eec31a500ab4f785438fb39f159f1175c
commit 10da464eec31a500ab4f785438fb39f159f1175c
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: Fri Apr 11 09:18:20 2014 -0400
CMakeDetermineVSServicePack: Add deprecation warning
Warn project developers at runtime that the module should not be used
anymore.
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..243d38a 100644
--- a/Modules/CMakeDetermineVSServicePack.cmake
+++ b/Modules/CMakeDetermineVSServicePack.cmake
@@ -43,6 +43,11 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
+if(NOT CMakeDetermineVSServicePack_NO_WARNING)
+ message(AUTHOR_WARNING "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:
Help/release/dev/CMakeDetermineVSServicePack.rst | 6 ++++++
Modules/CMakeDetermineVSServicePack.cmake | 5 +++++
2 files changed, 11 insertions(+)
create mode 100644 Help/release/dev/CMakeDetermineVSServicePack.rst
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list