summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-31 11:48:02 -0400
committerBrad King <brad.king@kitware.com>2017-05-31 11:48:02 -0400
commitc5ff50fc19ac8393be3cad5f7c1578a6a8c64819 (patch)
tree5c844cc212e329aec00a5a94d78099f283c5b6a5
parente7d690492a0ef55709185e7ca7ede659a002530b (diff)
downloadcmake-c5ff50fc19ac8393be3cad5f7c1578a6a8c64819.tar.gz
Tests: Fix CustomCommandByproducts regex for phony rules
Update the regex to match phony rules that have no inputs.
-rw-r--r--Tests/CustomCommandByproducts/ninja-check.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CustomCommandByproducts/ninja-check.cmake b/Tests/CustomCommandByproducts/ninja-check.cmake
index 2fc3cc217b..a7beb3d645 100644
--- a/Tests/CustomCommandByproducts/ninja-check.cmake
+++ b/Tests/CustomCommandByproducts/ninja-check.cmake
@@ -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)