Skip to content
Snippets Groups Projects
Commit 32a4ec5b authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Deprecation of interface libraries only works from CMake 3.19

parent db7d059f
No related branches found
No related tags found
1 merge request!1247Export targets under custom namespaces (Dune:: by default)
......@@ -246,7 +246,7 @@ endif()")
set(DUNE_DEPRECATED_LIBRARY_ALIASES "${DUNE_DEPRECATED_LIBRARY_ALIASES}
add_library(${_alias_name} INTERFACE)
target_link_libraries(${_alias_name} INTERFACE ${_export_name})
if(CMAKE_VERSION VERSION_GREATER_EQUAL \"3.17\")
if(CMAKE_VERSION VERSION_GREATER_EQUAL \"3.19\")
set_property(TARGET ${_alias_name} PROPERTY DEPRECATION \"Use ${_export_name} instead.\")
endif()")
unset(_alias_name)
......
......@@ -29,6 +29,6 @@ endif(NOT @DUNE_MOD_NAME@_FOUND)
add_library(dunecommon INTERFACE)
target_link_libraries(dunecommon INTERFACE Dune::Common)
if(CMAKE_VERSION VERSION_GREATER_EQUAL \"3.17\")
set_property(TARGET dunecommon PROPERTY DEPRECATION \"Use Dune::Common instead.\")
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.19")
set_property(TARGET dunecommon PROPERTY DEPRECATION "Use Dune::Common instead.")
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment