mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-18 13:10:17 -06:00
Tests: Fix CustomCommandByproducts regex for phony rules
Update the regex to match phony rules that have no inputs.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user