Merge pull request #105 from water111/w/cmake-spdlog-shared-lib-fix

Fix cmake setting for spdlog
This commit is contained in:
water111 2020-10-28 20:22:43 -04:00 committed by GitHub
commit 461aeadad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ include_directories(SYSTEM third-party/inja)
# adding this as a SYSTEM include suppresses all the terrible warnings in spdlog
include_directories(SYSTEM third-party/spdlog/include)
# this makes spdlog generate a shared library that we can link against
set(SPDLOG_BUILD_SHARED ON)
set(SPDLOG_BUILD_SHARED ON CACHE BOOL "a" FORCE)
# this makes the spdlog includes not use the header only version, making compiling faster
add_definitions(-DSPDLOG_COMPILED_LIB)