Skip to content

Commit

Permalink
Merge pull request #802 from wildmeshing/mtao/force_spdlog_external
Browse files Browse the repository at this point in the history
forcing external spdlog
  • Loading branch information
mtao authored Sep 12, 2024
2 parents dc40d12 + ddbec74 commit ebbad69
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/recipes/spdlog.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ if(TARGET spdlog::spdlog)
endif()

include(fmt)
# the toolkit requires this setting now, ideally we could make this more optional, but it requires more care in making deps private
set(SPDLOG_FMT_EXTERNAL CACHE BOOL "Use external fmt library instead of bundled; this is forced by wmtk" ON)

# option(SPDLOG_FMT_EXTERNAL "Use external fmt library instead of bundled" ON)

message(STATUS "Third-party (external): creating target 'spdlog::spdlog'")

option(SPDLOG_INSTALL "Generate the install target" ON)
option(SPDLOG_FMT_EXTERNAL "Use external fmt library instead of bundled" ON)
#option(SPDLOG_FMT_EXTERNAL_HO "Use external fmt header-only library instead of bundled" ON)


set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME "spdlog")

include(CPM)
Expand Down

0 comments on commit ebbad69

Please sign in to comment.