Skip to content

Commit 1317aa3

Browse files
milianwJakeHillion
authored andcommitted
Show progress information for FetchContent
Github is currently extremely slow to load for me for some reason. Due to that, I first thought that `cmake` is hung up, but tracing that I realized it's waiting for minutes to download the sources for tomlplusplus via FetchContent. This patch enables progress reporting for FetchContent to make it more obvious what's going on here.
1 parent 53cac53 commit 1317aa3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
1212
add_compile_definitions(OSS_ENABLE)
1313

1414
include(FetchContent)
15+
set(FETCHCONTENT_QUIET FALSE)
16+
1517
include(ProcessorCount)
1618
include(cmake/StandardProjectSettings.cmake)
1719
include(cmake/PreventInSourceBuilds.cmake)
@@ -35,6 +37,7 @@ FetchContent_Declare(
3537
tomlplusplus
3638
GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git
3739
GIT_TAG 4b166b69f28e70a416a1a04a98f365d2aeb90de8 # v3.2.0
40+
GIT_PROGRESS TRUE
3841
)
3942
FetchContent_MakeAvailable(tomlplusplus)
4043

@@ -43,6 +46,7 @@ FetchContent_Declare(
4346
glog
4447
GIT_REPOSITORY https://github.com/google/glog.git
4548
GIT_TAG 96a2f23dca4cc7180821ca5f32e526314395d26a
49+
GIT_PROGRESS TRUE
4650
)
4751
FetchContent_MakeAvailable(glog)
4852

@@ -61,6 +65,7 @@ FetchContent_Declare(
6165
googletest
6266
GIT_REPOSITORY https://github.com/google/googletest.git
6367
GIT_TAG 1ed6a8c67a0bd675149ece27bbec0ef1759854cf
68+
GIT_PROGRESS TRUE
6469
)
6570
FetchContent_MakeAvailable(googletest)
6671

@@ -69,6 +74,7 @@ FetchContent_Declare(
6974
rocksdb
7075
GIT_REPOSITORY https://github.com/facebook/rocksdb.git
7176
GIT_TAG f32521662acf3352397d438b732144c7813bbbec # v8.5.3
77+
GIT_PROGRESS TRUE
7278
)
7379
FetchContent_Populate(rocksdb)
7480
add_custom_target(librocksdb ALL
@@ -87,6 +93,7 @@ FetchContent_Declare(
8793
folly
8894
GIT_REPOSITORY https://github.com/JakeHillion/folly.git
8995
GIT_TAG 8db54418e3ccdd97619ac8b69bb3702f82bb0f66
96+
GIT_PROGRESS TRUE
9097
)
9198
FetchContent_Populate(folly)
9299

0 commit comments

Comments
 (0)