Improve update of cmake target property
@@ -104,9 +104,7 @@ celix_deprecated_utils_headers(<target_name>))
function(celix_deprecated_utils_headers)
list(GET ARGN 0 TARGET_NAME)
target_include_directories(${TARGET_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/libs/utils/include_deprecated)
- get_target_property(TARGETS celix-deprecated "UTIL_TARGETS")
- list(APPEND TARGETS ${TARGET_NAME})
- set_target_properties(celix-deprecated PROPERTIES "UTIL_TARGETS" "${TARGETS}")
+ set_properties(TARGET celix-deprecated APPEND PROPERTY "UTIL_TARGETS" "${TARGET_NAME}")
endfunction()
include(${CMAKE_CURRENT_LIST_DIR}/ApacheRat.cmake)
