summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-04-29 09:41:12 (GMT)
committerDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-05-05 16:49:41 (GMT)
commit93730bb3e05e7f9ced8bd0bc7810b8697e464cf4 (patch)
treec6fd3318f414ff9d146b4fffcca1b5903692a510 /Modules/ExternalProject.cmake
parent39ef80460213d666a5041bd416337c2e09e00283 (diff)
downloadCMake-93730bb3e05e7f9ced8bd0bc7810b8697e464cf4.zip
CMake-93730bb3e05e7f9ced8bd0bc7810b8697e464cf4.tar.gz
CMake-93730bb3e05e7f9ced8bd0bc7810b8697e464cf4.tar.bz2
ExternalProject: Set FOLDER property to targets
This is useful when using the USE_FOLDERS global property
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index cf44f80..0d35cca 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -1177,6 +1177,7 @@ function(ExternalProject_Add_StepTargets name)
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)
@@ -1920,6 +1921,8 @@ function(ExternalProject_Add name)
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)