summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-22 14:13:55 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-12-22 14:14:01 (GMT)
commit440531e0f9abba65839e2e242367c6091cc4789c (patch)
treed33e45abe00af683274526b9f3ac17cd90ffb7d6
parent72a28635b8a92ecf2bd14c18c6fca0a391391f85 (diff)
parent850de767e9cba3faa581ceb451ce1ea265ae09b3 (diff)
downloadCMake-440531e0f9abba65839e2e242367c6091cc4789c.zip
CMake-440531e0f9abba65839e2e242367c6091cc4789c.tar.gz
CMake-440531e0f9abba65839e2e242367c6091cc4789c.tar.bz2
Merge topic 'external-project-drop-success'
850de767e9 ExternalProject: Silence step succeeded message when using Ninja Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5625
-rw-r--r--Modules/ExternalProject.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index f0ce7d4..28d21c1 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -2064,8 +2064,10 @@ if(result)
message(FATAL_ERROR \"\${msg}\")
endif()
else()
- set(msg \"${name} ${step} command succeeded. See also ${logbase}-*.log\")
- message(STATUS \"\${msg}\")
+ if(NOT \"${CMAKE_GENERATOR}\" MATCHES \"Ninja\")
+ set(msg \"${name} ${step} command succeeded. See also ${logbase}-*.log\")
+ message(STATUS \"\${msg}\")
+ endif()
endif()
")
file(GENERATE OUTPUT "${script}" CONTENT "${code}")