Skip to content

Commit

Permalink
fix(dependencies): refactor spdlog dependency handling
Browse files Browse the repository at this point in the history
  • Loading branch information
alphagocc committed Jun 17, 2024
1 parent 4dc6170 commit ba9f312
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,10 @@ set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleAp
add_subdirectory(3rdparty/SingleApplication)

# spdlog
find_package(spdlog QUIET)
add_compile_definitions(SPDLOG_COMPILED_LIB)
if (NOT spdlog_FOUND)
message("Could NOT Find system spdlog")
message("Use 3rdparty spdlog")
set(spdlog_DIR ${CMAKE_SOURCE_DIR}/3rdparty/spdlog)
add_subdirectory(3rdparty/spdlog)
endif()
add_compile_definitions(SPDLOG_BUILD_SHARED=OFF)
set(spdlog_DIR ${CMAKE_SOURCE_DIR}/3rdparty/spdlog)
add_subdirectory(3rdparty/spdlog)

if(WIN32)
add_compile_options("/std:c++17")
Expand Down
2 changes: 1 addition & 1 deletion makespec/BUILDVERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
258
259

0 comments on commit ba9f312

Please sign in to comment.