mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
Merge topic 'ExternalProject-touch-echo'
3bf0830e44 ExternalProject: Avoid adding empty touch command on "ALWAYS" steps
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Craig Scott <craig.scott@crascit.com>
Merge-request: !8468
This commit is contained in:
@@ -2447,7 +2447,7 @@ function(ExternalProject_Add_Step name step)
|
||||
PROPERTY _EP_${step}_ALWAYS
|
||||
)
|
||||
if(always)
|
||||
set(touch)
|
||||
set(maybe_COMMAND_touch "")
|
||||
# Mark stamp files for all configs as SYMBOLIC since we do not create them.
|
||||
# Remove any existing stamp in case the option changed in an existing tree.
|
||||
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
||||
@@ -2469,7 +2469,7 @@ function(ExternalProject_Add_Step name step)
|
||||
file(REMOVE ${stamp_file})
|
||||
endif()
|
||||
else()
|
||||
set(touch ${CMAKE_COMMAND} -E touch ${stamp_file})
|
||||
set(maybe_COMMAND_touch "COMMAND \${CMAKE_COMMAND} -E touch \${stamp_file}")
|
||||
endif()
|
||||
|
||||
# Wrap with log script?
|
||||
@@ -2497,7 +2497,7 @@ function(ExternalProject_Add_Step name step)
|
||||
BYPRODUCTS \${byproducts}
|
||||
COMMENT \${comment}
|
||||
COMMAND ${__cmdQuoted}
|
||||
COMMAND \${touch}
|
||||
${maybe_COMMAND_touch}
|
||||
DEPENDS \${depends}
|
||||
WORKING_DIRECTORY \${work_dir}
|
||||
VERBATIM
|
||||
|
||||
Reference in New Issue
Block a user