summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-08 17:33:02 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-08 17:34:15 (GMT)
commit777c14af82c23e9da0696eb9beecb7bca2d8ba45 (patch)
tree18e81ff3b94d11a84fb3f35997295213e04b65e1
parent17d41381087bcfe5f8be29e7ca3a17d5bbb1c47f (diff)
downloadCMake-777c14af82c23e9da0696eb9beecb7bca2d8ba45.zip
CMake-777c14af82c23e9da0696eb9beecb7bca2d8ba45.tar.gz
CMake-777c14af82c23e9da0696eb9beecb7bca2d8ba45.tar.bz2
MacroAddFileDependencies: Simplify implementation
-rw-r--r--Modules/MacroAddFileDependencies.cmake9
1 files changed, 1 insertions, 8 deletions
diff --git a/Modules/MacroAddFileDependencies.cmake b/Modules/MacroAddFileDependencies.cmake
index ca60b57..c4374ee 100644
--- a/Modules/MacroAddFileDependencies.cmake
+++ b/Modules/MacroAddFileDependencies.cmake
@@ -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 ()