1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Tests: Fix CustomCommandByproducts regex for phony rules

Update the regex to match phony rules that have no inputs.
This commit is contained in:
Brad King
2017-05-31 11:48:02 -04:00
parent e7d690492a
commit c5ff50fc19

View File

@@ -4,7 +4,7 @@ if("${build_ninja}" MATCHES [====[
# Tell Ninja that they may appear as side effects of build rules
# otherwise ordered by order-only dependencies.
((build [^:]*: phony [^\n]*
((build [^:]*: phony[^\n]*
)*)# ========]====])
set(phony "${CMAKE_MATCH_1}")
if(NOT phony)