mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-28 00:10:21 +08:00
Clean cmake
This commit is contained in:
parent
90c5055b77
commit
f4204e05bd
@ -1,10 +1,5 @@
|
|||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
|
||||||
# Always build static fmtlib version
|
|
||||||
set(BUILD_SHARED_LIBS_ORIG "${BUILD_SHARED_LIBS}")
|
|
||||||
#set(BUILD_SHARED_LIBS OFF CACHE BOOL "Disable BUILD_SHARED_LIBS for fmtlib" FORCE)
|
|
||||||
|
|
||||||
Set(FETCHCONTENT_QUIET FALSE)
|
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
fmt
|
fmt
|
||||||
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
|
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
|
||||||
@ -19,6 +14,3 @@ if(NOT fmt_POPULATED)
|
|||||||
set(FMT_OS OFF CACHE BOOL "Disable FMT_OS" FORCE)
|
set(FMT_OS OFF CACHE BOOL "Disable FMT_OS" FORCE)
|
||||||
add_subdirectory(${fmt_SOURCE_DIR} ${fmt_BINARY_DIR})
|
add_subdirectory(${fmt_SOURCE_DIR} ${fmt_BINARY_DIR})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Restore BUILD_SHARED_LIBS
|
|
||||||
set(BUILD_SHARED_LIBS "${BUILD_SHARED_LIBS_ORIG}" CACHE BOOL "Restore BUILD_SHARED_LIBS" FORCE)
|
|
Loading…
Reference in New Issue
Block a user