mirror of
https://github.com/gabime/spdlog.git
synced 2025-04-29 12:03:53 +00:00
Remove static lib enforement of fmt
This commit is contained in:
parent
ffbdc8f610
commit
3fe640e270
@ -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)
|
|
Loading…
x
Reference in New Issue
Block a user