Remove static lib enforement of fmt

This commit is contained in:
gabime 2023-12-23 16:29:51 +02:00
parent ffbdc8f610
commit 3fe640e270

View File

@ -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)