We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b42d46 commit 44c0d53Copy full SHA for 44c0d53
src/CMakeLists.txt
@@ -44,7 +44,9 @@ function(add_deprecated_library target_name)
44
# The INTERFACE IMPORTED target works like an alias which can have different properties
45
add_library(deprecated_name INTERFACE IMPORTED)
46
target_link_libraries(deprecated_name INTERFACE target_name)
47
- set_target_properties(deprecated_name PROPERTIES DEPRECATION "${deprecated_name} target is deprecated, please use ${target_name} instead")
+ if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.22.1")
48
+ set_target_properties(deprecated_name PROPERTIES DEPRECATION "${deprecated_name} target is deprecated, please use ${target_name} instead")
49
+ endif()
50
endfunction()
51
52
0 commit comments