mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Remove static lib enforement of fmt
This commit is contained in:
@@ -1,9 +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)
|
Set(FETCHCONTENT_QUIET FALSE)
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
fmt
|
fmt
|
||||||
@@ -20,5 +16,3 @@ if(NOT fmt_POPULATED)
|
|||||||
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)
|
|
Reference in New Issue
Block a user