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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user