jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / spdlog / patches / example-nsl-socket.patch
blob0a3ffc94a4cc27bc4f1a946fb26435e5cf0a3477
1 diff -Nru spdlog-1.12.0.orig/example/CMakeLists.txt spdlog-1.12.0/example/CMakeLists.txt
2 --- spdlog-1.12.0.orig/example/CMakeLists.txt 2023-07-08 16:12:25.000000000 +0200
3 +++ spdlog-1.12.0/example/CMakeLists.txt 2023-10-07 09:11:26.520458206 +0200
4 @@ -12,12 +12,12 @@
5 # Example of using pre-compiled library
6 # ---------------------------------------------------------------------------------------
7 add_executable(example example.cpp)
8 -target_link_libraries(example PRIVATE spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32>)
9 +target_link_libraries(example PRIVATE spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32> nsl socket)
11 # ---------------------------------------------------------------------------------------
12 # Example of using header-only library
13 # ---------------------------------------------------------------------------------------
14 if(SPDLOG_BUILD_EXAMPLE_HO)
15 add_executable(example_header_only example.cpp)
16 - target_link_libraries(example_header_only PRIVATE spdlog::spdlog_header_only)
17 + target_link_libraries(example_header_only PRIVATE spdlog::spdlog_header_only nsl socket)
18 endif()