mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
GenerateExportHeader: Port to use message(DEPRECATION)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user