mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 06:47:08 -05:00
MacroAddFileDependencies: Simplify implementation
This commit is contained in:
@@ -18,13 +18,6 @@ OBJECT_DEPENDS depend_files) instead.
|
||||
|
||||
macro (MACRO_ADD_FILE_DEPENDENCIES _file)
|
||||
|
||||
get_source_file_property(_deps ${_file} OBJECT_DEPENDS)
|
||||
if (_deps)
|
||||
set(_deps ${_deps} ${ARGN})
|
||||
else ()
|
||||
set(_deps ${ARGN})
|
||||
endif ()
|
||||
|
||||
set_source_files_properties(${_file} PROPERTIES OBJECT_DEPENDS "${_deps}")
|
||||
set_property(SOURCE "${_file}" APPEND PROPERTY OBJECT_DEPENDS "${ARGN}")
|
||||
|
||||
endmacro ()
|
||||
|
||||
Reference in New Issue
Block a user