misc(cmake): use url deps and not git repo
This commit is contained in:
parent
52208f5b78
commit
62dba1a878
|
@ -1,6 +1,5 @@
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
fmt
|
fmt
|
||||||
GIT_REPOSITORY https://github.com/fmtlib/fmt
|
URL https://github.com/fmtlib/fmt/archive/refs/tags/11.0.2.tar.gz
|
||||||
GIT_TAG 11.0.1
|
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(fmt)
|
FetchContent_MakeAvailable(fmt)
|
||||||
|
|
|
@ -1,18 +1,17 @@
|
||||||
set(SPDLOG_USE_FMT ON)
|
set(SPDLOG_USE_FMT ON)
|
||||||
set(SPDLOG_BUILD_SHARED OFF)
|
set(SPDLOG_BUILD_SHARED ON)
|
||||||
set(SPDLOG_FMT_EXTERNAL ON)
|
set(SPDLOG_FMT_EXTERNAL ON)
|
||||||
|
|
||||||
# Define the level at which SPDLOG_ compilation level is defined
|
# Define the level at which SPDLOG_ compilation level is defined
|
||||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
message(STATUS "Verbose logging is enabled in debug build")
|
message(STATUS "Verbose logging is enabled in debug build")
|
||||||
add_compile_definitions(SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG)
|
add_compile_definitions(SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG)
|
||||||
else()
|
else ()
|
||||||
add_compile_definitions(SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_INFO)
|
add_compile_definitions(SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_INFO)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
fetchcontent_declare(
|
fetchcontent_declare(
|
||||||
spdlog
|
spdlog
|
||||||
GIT_REPOSITORY https://github.com/gabime/spdlog.git
|
URL https://github.com/gabime/spdlog/archive/refs/tags/v1.14.1.tar.gz
|
||||||
GIT_TAG v1.14.1
|
|
||||||
)
|
)
|
||||||
fetchcontent_makeavailable(spdlog)
|
fetchcontent_makeavailable(spdlog)
|
||||||
|
|
Loading…
Reference in New Issue