mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 02:05:16 +03:00
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 16996c9..ef90a00 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -297,13 +297,15 @@ if (IXWEBSOCKET_INSTALL)
|
|
endif()
|
|
|
|
if (USE_WS OR USE_TEST)
|
|
- include(FetchContent)
|
|
- FetchContent_Declare(spdlog
|
|
- GIT_REPOSITORY "https://github.com/gabime/spdlog"
|
|
- GIT_TAG "v1.8.0"
|
|
- GIT_SHALLOW 1)
|
|
-
|
|
- FetchContent_MakeAvailable(spdlog)
|
|
+ # include(FetchContent)
|
|
+ # FetchContent_Declare(spdlog
|
|
+ # GIT_REPOSITORY "https://github.com/gabime/spdlog"
|
|
+ # GIT_TAG "v1.8.0"
|
|
+ # GIT_SHALLOW 1)
|
|
+ #
|
|
+ # FetchContent_MakeAvailable(spdlog)
|
|
+ find_package(fmt REQUIRED)
|
|
+ find_package(spdlog REQUIRED)
|
|
|
|
if (USE_WS)
|
|
add_subdirectory(ws)
|
|
diff --git a/ws/CMakeLists.txt b/ws/CMakeLists.txt
|
|
index 98f15de..5359a84 100644
|
|
--- a/ws/CMakeLists.txt
|
|
+++ b/ws/CMakeLists.txt
|
|
@@ -31,6 +31,6 @@ add_executable(ws
|
|
# library with the most dependencies come first
|
|
target_link_libraries(ws ixwebsocket)
|
|
|
|
-target_link_libraries(ws spdlog)
|
|
+target_link_libraries(ws spdlog fmt)
|
|
|
|
install(TARGETS ws RUNTIME DESTINATION bin)
|