mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Remove static lib enforement of fmt
This commit is contained in:
parent
ffbdc8f610
commit
3fe640e270
@ -1,9 +1,5 @@
|
||||
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(
|
||||
fmt
|
||||
@ -20,5 +16,3 @@ if(NOT fmt_POPULATED)
|
||||
add_subdirectory(${fmt_SOURCE_DIR} ${fmt_BINARY_DIR})
|
||||
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