summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-04-07 13:42:44 (GMT)
committerDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-05-05 16:49:41 (GMT)
commit39ef80460213d666a5041bd416337c2e09e00283 (patch)
tree247efe44c57cd775e372173c41d37542b2df2a9d /Modules/ExternalProject.cmake
parent1aed32faaeff40dcde2fa7cb75c7c249e68485e3 (diff)
downloadCMake-39ef80460213d666a5041bd416337c2e09e00283.zip
CMake-39ef80460213d666a5041bd416337c2e09e00283.tar.gz
CMake-39ef80460213d666a5041bd416337c2e09e00283.tar.bz2
ExternalProject: Set LABELS property to targets
This is useful for using CDash subprojects.
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index fc31ce4..cf44f80 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -1176,6 +1176,7 @@ 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})
# Depend on other external projects (target-level).
get_property(deps TARGET ${name} PROPERTY _EP_DEPENDS)
@@ -1918,6 +1919,7 @@ 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})
_ep_parse_arguments(ExternalProject_Add ${name} _EP_ "${ARGN}")
_ep_set_directories(${name})
_ep_get_step_stampfile(${name} "done" done_stamp_file)