mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
Add a new property flag for a target which contains a message regarding deprecation status. Add a warning at "Generate" time if a linked target is marked as deprecated. Expand ExportImport test to ensure that new property is being set and passed correctly. Ensure that the message is shown during the "Generate" step run of the ExportImport test.
6 lines
245 B
CMake
6 lines
245 B
CMake
add_library(testLibDeprecation STATIC empty.cpp)
|
|
set_property(TARGET testLibDeprecation PROPERTY DEPRECATION "Deprecated version. Please use latest version")
|
|
|
|
add_executable(testExe1 empty.cpp)
|
|
target_link_libraries(testExe1 testLibDeprecation)
|