Selaa lähdekoodia

Merge topic 'fetchcontent-debug-log-level' into release-3.30

8c878b2d2e FetchContent: Fix command echo for DEBUG and TRACE log levels

Acked-by: Kitware Robot <[email protected]>
Merge-request: !9640
Craig Scott 1 vuosi sitten
vanhempi
sitoutus
b192bf1c1c

+ 1 - 1
Modules/ExternalProject/gitclone.cmake.in

@@ -16,7 +16,7 @@ endif()
 # enabling them to be shown for DEBUG may be useful to help diagnose problems.
 # enabling them to be shown for DEBUG may be useful to help diagnose problems.
 cmake_language(GET_MESSAGE_LOG_LEVEL active_log_level)
 cmake_language(GET_MESSAGE_LOG_LEVEL active_log_level)
 if(active_log_level MATCHES "DEBUG|TRACE")
 if(active_log_level MATCHES "DEBUG|TRACE")
-  set(maybe_show_command "COMMAND_ECHO STDOUT")
+  set(maybe_show_command COMMAND_ECHO STDOUT)
 else()
 else()
   set(maybe_show_command "")
   set(maybe_show_command "")
 endif()
 endif()

+ 1 - 1
Modules/ExternalProject/gitupdate.cmake.in

@@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 3.5)
 # enabling them to be shown for DEBUG may be useful to help diagnose problems.
 # enabling them to be shown for DEBUG may be useful to help diagnose problems.
 cmake_language(GET_MESSAGE_LOG_LEVEL active_log_level)
 cmake_language(GET_MESSAGE_LOG_LEVEL active_log_level)
 if(active_log_level MATCHES "DEBUG|TRACE")
 if(active_log_level MATCHES "DEBUG|TRACE")
-  set(maybe_show_command "COMMAND_ECHO STDOUT")
+  set(maybe_show_command COMMAND_ECHO STDOUT)
 else()
 else()
   set(maybe_show_command "")
   set(maybe_show_command "")
 endif()
 endif()

+ 1 - 1
Modules/ExternalProject/hgclone.cmake.in

@@ -16,7 +16,7 @@ endif()
 # enabling them to be shown for DEBUG may be useful to help diagnose problems.
 # enabling them to be shown for DEBUG may be useful to help diagnose problems.
 cmake_language(GET_MESSAGE_LOG_LEVEL active_log_level)
 cmake_language(GET_MESSAGE_LOG_LEVEL active_log_level)
 if(active_log_level MATCHES "DEBUG|TRACE")
 if(active_log_level MATCHES "DEBUG|TRACE")
-  set(maybe_show_command "COMMAND_ECHO STDOUT")
+  set(maybe_show_command COMMAND_ECHO STDOUT)
 else()
 else()
   set(maybe_show_command "")
   set(maybe_show_command "")
 endif()
 endif()