Skip to content

Commit

Permalink
Update cmake to define FMT_LIB_EXPORT when building shared lib
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Apr 25, 2024
1 parent 1e7d7e0 commit e3f5a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ if(SPDLOG_BUILD_SHARED OR BUILD_SHARED_LIBS)
/wd4275>)
endif()
if(NOT SPDLOG_USE_STD_FORMAT AND NOT SPDLOG_FMT_EXTERNAL AND NOT SPDLOG_FMT_EXTERNAL_HO)
target_compile_definitions(spdlog PRIVATE FMT_EXPORT PUBLIC FMT_SHARED)
target_compile_definitions(spdlog PRIVATE FMT_LIB_EXPORT PUBLIC FMT_SHARED)
endif()
else()
add_library(spdlog STATIC ${SPDLOG_SRCS} ${SPDLOG_ALL_HEADERS})
Expand Down

0 comments on commit e3f5a4f

Please sign in to comment.