summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-10-08 16:14:21 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-10-08 16:23:42 (GMT)
commitf973737305aaa48ddf26f4455bdc8acdd7d03573 (patch)
treec424b26714ead5a686231d819ff8fa755424b6fc /Modules
parentf69606d3354701c2e4ef4ed0718802e1fa6b7fd5 (diff)
downloadCMake-f973737305aaa48ddf26f4455bdc8acdd7d03573.zip
CMake-f973737305aaa48ddf26f4455bdc8acdd7d03573.tar.gz
CMake-f973737305aaa48ddf26f4455bdc8acdd7d03573.tar.bz2
GenerateExportHeader: Port to use message(DEPRECATION)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/GenerateExportHeader.cmake10
1 files changed, 1 insertions, 9 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index b2fda09..fb113a7 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -337,15 +337,7 @@ endfunction()
function(add_compiler_export_flags)
if(NOT CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12)
- if(CMAKE_WARN_DEPRECATED)
- set(messageType WARNING)
- endif()
- if(CMAKE_ERROR_DEPRECATED)
- set(messageType FATAL_ERROR)
- endif()
- if(messageType)
- message(${messageType} "The add_compiler_export_flags function is obsolete. Use the CXX_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN target properties instead.")
- endif()
+ message(DEPRECATION "The add_compiler_export_flags function is obsolete. Use the CXX_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN target properties instead.")
endif()
_test_compiler_hidden_visibility()