--- spdlog-1.17.0/example/CMakeLists.txt.orig +++ spdlog-1.17.0/example/CMakeLists.txt @@ -12,12 +12,12 @@ # Example of using pre-compiled library # --------------------------------------------------------------------------------------- add_executable(example example.cpp) -target_link_libraries(example PRIVATE spdlog::spdlog $<$:ws2_32>) +target_link_libraries(example PRIVATE spdlog::spdlog $<$:ws2_32> nsl socket) # --------------------------------------------------------------------------------------- # Example of using header-only library # --------------------------------------------------------------------------------------- if(SPDLOG_BUILD_EXAMPLE_HO) add_executable(example_header_only example.cpp) - target_link_libraries(example_header_only PRIVATE spdlog::spdlog_header_only) + target_link_libraries(example_header_only PRIVATE spdlog::spdlog_header_only nsl socket) endif()