From 6a0dd655859c866c3673e9898121f67fd053c5de Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Fri, 5 Sep 2025 22:52:41 -0700 Subject: [PATCH] Show git download progress with FetchContent Some downloads are slower and showing progress is better than sitting there doing nothing --- CMakeLists.txt | 1 + cmake/FindGoogleTest.cmake | 1 + dCommon/CMakeLists.txt | 1 + thirdparty/CMakeLists.txt | 1 + 4 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e4018e01..346f0771 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Export the compile commands for debuggi set(CMAKE_POLICY_DEFAULT_CMP0063 NEW) # Set CMAKE visibility policy to NEW on project and subprojects set(CMAKE_VISIBILITY_INLINES_HIDDEN ON) # Set C and C++ symbol visibility to hide inlined functions set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") +set(FETCHCONTENT_QUIET FALSE) # GLM takes a long time to clone, this will at least show _something_ while its downloading # Read variables from file FILE(READ "${CMAKE_SOURCE_DIR}/CMakeVariables.txt" variables) diff --git a/cmake/FindGoogleTest.cmake b/cmake/FindGoogleTest.cmake index 69d16247..db0bfb77 100644 --- a/cmake/FindGoogleTest.cmake +++ b/cmake/FindGoogleTest.cmake @@ -6,6 +6,7 @@ FetchContent_Declare( googletest GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG release-1.12.1 + GIT_PROGRESS TRUE ) # For Windows: Prevent overriding the parent project's compiler/linker settings diff --git a/dCommon/CMakeLists.txt b/dCommon/CMakeLists.txt index 3a073fc4..82990319 100644 --- a/dCommon/CMakeLists.txt +++ b/dCommon/CMakeLists.txt @@ -54,6 +54,7 @@ elseif (WIN32) zlib URL https://github.com/madler/zlib/archive/refs/tags/v1.2.11.zip URL_HASH MD5=9d6a627693163bbbf3f26403a3a0b0b1 + GIT_PROGRESS TRUE ) # Disable warning about no project version. diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index 9bca9738..a0c2a14c 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -47,6 +47,7 @@ if(UNIX AND NOT APPLE) FetchContent_Declare( backtrace GIT_REPOSITORY https://github.com/ianlancetaylor/libbacktrace.git + GIT_PROGRESS TRUE ) FetchContent_MakeAvailable(backtrace)