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 # Tell Ninja that they may appear as side effects of build rules
# otherwise ordered by order-only dependencies. # otherwise ordered by order-only dependencies.
((build [^:]*: phony [^\n]* ((build [^:]*: phony[^\n]*
)*)# ========]====]) )*)# ========]====])
set(phony "${CMAKE_MATCH_1}") set(phony "${CMAKE_MATCH_1}")
if(NOT phony) if(NOT phony)