summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGaëtan Lehmann <gaetan.lehmann@gmail.com>2015-03-06 10:43:16 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-09 14:04:44 (GMT)
commit86032ae0ebb7e86f3ff5617e080dd827dbbe98b0 (patch)
tree9eb863a0d1272156c148625f6199457b3c421b9e /Modules
parenta6d488f2ceb62b968c6f0a8971a3556195af80ca (diff)
downloadCMake-86032ae0ebb7e86f3ff5617e080dd827dbbe98b0.zip
CMake-86032ae0ebb7e86f3ff5617e080dd827dbbe98b0.tar.gz
CMake-86032ae0ebb7e86f3ff5617e080dd827dbbe98b0.tar.bz2
ExternalProject: Replace placeholder tokens in BYPRODUCTS
This allows the developer to specify the byproducts relative to the binary directory without the need to set the binary directory location explicitly.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/ExternalProject.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 1f9f4d3..d7b985d 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -251,8 +251,8 @@ Create custom targets to build projects in external trees
``LOG 1``
Wrap step in script to log output
- The command line, comment, and working directory of every standard and
- custom step is processed to replace tokens ``<SOURCE_DIR>``,
+ The command line, comment, working directory, and byproducts of every
+ standard and custom step are processed to replace tokens ``<SOURCE_DIR>``,
``<BINARY_DIR>``, ``<INSTALL_DIR>``, and ``<TMP_DIR>`` with
corresponding property values.
@@ -1443,7 +1443,7 @@ function(ExternalProject_Add_Step name step)
endif()
# Replace location tags.
- _ep_replace_location_tags(${name} comment command work_dir)
+ _ep_replace_location_tags(${name} comment command work_dir byproducts)
# Custom comment?
get_property(comment_set TARGET ${name} PROPERTY _EP_${step}_COMMENT SET)