Skip to content

Commit ba9f312

Browse files
committed
fix(dependencies): refactor spdlog dependency handling
1 parent 4dc6170 commit ba9f312

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,10 @@ set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleAp
7171
add_subdirectory(3rdparty/SingleApplication)
7272

7373
# spdlog
74-
find_package(spdlog QUIET)
7574
add_compile_definitions(SPDLOG_COMPILED_LIB)
76-
if (NOT spdlog_FOUND)
77-
message("Could NOT Find system spdlog")
78-
message("Use 3rdparty spdlog")
79-
set(spdlog_DIR ${CMAKE_SOURCE_DIR}/3rdparty/spdlog)
80-
add_subdirectory(3rdparty/spdlog)
81-
endif()
75+
add_compile_definitions(SPDLOG_BUILD_SHARED=OFF)
76+
set(spdlog_DIR ${CMAKE_SOURCE_DIR}/3rdparty/spdlog)
77+
add_subdirectory(3rdparty/spdlog)
8278

8379
if(WIN32)
8480
add_compile_options("/std:c++17")

makespec/BUILDVERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
258
1+
259

0 commit comments

Comments
 (0)