diff options
author | Brad King <brad.king@kitware.com> | 2014-04-10 15:03:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-14 13:31:54 (GMT) |
commit | 73721c7ce0dc8fc9ee07fe70746aa44284390d89 (patch) | |
tree | 315693d2b1462403d861db0d715444289362a7da /Modules/CMakeDetermineVSServicePack.cmake | |
parent | a6fee73dacdb8bd6e0eeee9e238a81b62ba303e1 (diff) | |
download | CMake-73721c7ce0dc8fc9ee07fe70746aa44284390d89.zip CMake-73721c7ce0dc8fc9ee07fe70746aa44284390d89.tar.gz CMake-73721c7ce0dc8fc9ee07fe70746aa44284390d89.tar.bz2 |
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.
Diffstat (limited to 'Modules/CMakeDetermineVSServicePack.cmake')
-rw-r--r-- | Modules/CMakeDetermineVSServicePack.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
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) |