summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-07 13:13:30 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-05-07 13:13:30 (GMT)
commitb4479ec0b96fce54748984c1968115d260e17328 (patch)
tree004ed9ec87bca79b84d9034d13e28b7b8363255f
parent139b86b7ed0f361d6b029dd8eba075abecb46244 (diff)
parent93730bb3e05e7f9ced8bd0bc7810b8697e464cf4 (diff)
downloadCMake-b4479ec0b96fce54748984c1968115d260e17328.zip
CMake-b4479ec0b96fce54748984c1968115d260e17328.tar.gz
CMake-b4479ec0b96fce54748984c1968115d260e17328.tar.bz2
Merge topic 'ExternalProject_labels'
93730bb3 ExternalProject: Set FOLDER property to targets 39ef8046 ExternalProject: Set LABELS property to targets
-rw-r--r--Modules/ExternalProject.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index fc31ce4..0d35cca 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -1176,6 +1176,8 @@ function(ExternalProject_Add_StepTargets name)
_ep_get_step_stampfile(${name} ${step} stamp_file)
add_custom_target(${name}-${step}
DEPENDS ${stamp_file})
+ set_property(TARGET ${name}-${step} PROPERTY LABELS ${name})
+ set_property(TARGET ${name}-${step} PROPERTY FOLDER "ExternalProjectTargets/${name}")
# Depend on other external projects (target-level).
get_property(deps TARGET ${name} PROPERTY _EP_DEPENDS)
@@ -1918,6 +1920,9 @@ function(ExternalProject_Add name)
# argument was passed, we explicitly set it for the target.
add_custom_target(${name} ALL DEPENDS ${complete_stamp_file})
set_property(TARGET ${name} PROPERTY _EP_IS_EXTERNAL_PROJECT 1)
+ set_property(TARGET ${name} PROPERTY LABELS ${name})
+ set_property(TARGET ${name} PROPERTY FOLDER "ExternalProjectTargets/${name}")
+
_ep_parse_arguments(ExternalProject_Add ${name} _EP_ "${ARGN}")
_ep_set_directories(${name})
_ep_get_step_stampfile(${name} "done" done_stamp_file)