|
14 | 14 |
|
15 | 15 | include(FetchContent) |
16 | 16 |
|
17 | | -FetchContent_Declare(googletest |
18 | | - GIT_REPOSITORY https://github.com/abseil/googletest |
19 | | - GIT_TAG ed2fe122f8dc9aca844d724986d1d5cf5b65ea4e) |
20 | | -FetchContent_Declare(abseil |
21 | | - GIT_REPOSITORY https://github.com/abseil/abseil-cpp |
22 | | - GIT_TAG 2c8421e1c6cef0da9e8a20b01c15256ec9ec116d) |
23 | | -FetchContent_Declare(prometheus |
24 | | - GIT_REPOSITORY https://github.com/jupp0r/prometheus-cpp |
25 | | - GIT_TAG master) |
26 | | -FetchContent_Declare(benchmark |
27 | | - GIT_REPOSITORY https://github.com/google/benchmark |
28 | | - GIT_TAG master) |
| 17 | +FetchContent_Declare( |
| 18 | + googletest |
| 19 | + GIT_REPOSITORY https://github.com/abseil/googletest |
| 20 | + GIT_TAG ed2fe122f8dc9aca844d724986d1d5cf5b65ea4e) |
| 21 | +FetchContent_Declare( |
| 22 | + abseil |
| 23 | + GIT_REPOSITORY https://github.com/abseil/abseil-cpp |
| 24 | + GIT_TAG 2c8421e1c6cef0da9e8a20b01c15256ec9ec116d) |
| 25 | +FetchContent_Declare( |
| 26 | + prometheus |
| 27 | + GIT_REPOSITORY https://github.com/jupp0r/prometheus-cpp |
| 28 | + GIT_TAG master) |
| 29 | +FetchContent_Declare( |
| 30 | + benchmark |
| 31 | + GIT_REPOSITORY https://github.com/google/benchmark |
| 32 | + GIT_TAG master) |
29 | 33 |
|
30 | 34 | FetchContent_GetProperties(googletest) |
31 | 35 | if(BUILD_TESTING) |
@@ -60,12 +64,18 @@ endif() |
60 | 64 | FetchContent_GetProperties(prometheus) |
61 | 65 | if(NOT prometheus_POPULATED) |
62 | 66 | message(STATUS "Dependency: prometheus") |
63 | | - set(ENABLE_PUSH OFF CACHE BOOL "Build prometheus-cpp push library" FORCE) |
64 | | - set(ENABLE_PULL OFF CACHE BOOL "Build prometheus-cpp pull library" FORCE) |
| 67 | + set(ENABLE_PUSH |
| 68 | + OFF |
| 69 | + CACHE BOOL "Build prometheus-cpp push library" FORCE) |
| 70 | + set(ENABLE_PULL |
| 71 | + OFF |
| 72 | + CACHE BOOL "Build prometheus-cpp pull library" FORCE) |
65 | 73 | set(ENABLE_COMPRESSION |
66 | 74 | OFF |
67 | 75 | CACHE BOOL "Enable gzip compression for prometheus-cpp" FORCE) |
68 | | - set(ENABLE_TESTING OFF CACHE BOOL "Build test for prometheus-cpp" FORCE) |
| 76 | + set(ENABLE_TESTING |
| 77 | + OFF |
| 78 | + CACHE BOOL "Build test for prometheus-cpp" FORCE) |
69 | 79 | FetchContent_Populate(prometheus) |
70 | 80 | add_subdirectory(${prometheus_SOURCE_DIR} ${prometheus_BINARY_DIR} |
71 | 81 | EXCLUDE_FROM_ALL) |
|
0 commit comments