Skip to content

Commit

Permalink
feat: link spdlog statically if compiled from source
Browse files Browse the repository at this point in the history
Signed-off-by: k4yt3x <[email protected]>
  • Loading branch information
k4yt3x committed Oct 13, 2024
1 parent b44d149 commit 224524d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ set(ALL_LIBRARIES)
# spdlog
if (USE_SYSTEM_SPDLOG)
find_package(spdlog REQUIRED)
list(APPEND ALL_LIBRARIES spdlog::spdlog)
else()
add_subdirectory(third_party/spdlog)
list(APPEND ALL_LIBRARIES spdlog::spdlog_header_only)
endif()
list(APPEND ALL_LIBRARIES spdlog::spdlog)

# Platform-specific dependencies
if(WIN32)
Expand Down

0 comments on commit 224524d

Please sign in to comment.