From: Joel Rosdahl Date: Mon, 6 Oct 2025 18:25:13 +0000 (+0200) Subject: fix: Link with libsocket on SunOS/Illumos X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54d258dac7b078c80cb75437f756bcc60b6455c3;p=thirdparty%2Fccache.git fix: Link with libsocket on SunOS/Illumos Closes #1638. --- diff --git a/src/ccache/CMakeLists.txt b/src/ccache/CMakeLists.txt index 03129125..14017331 100644 --- a/src/ccache/CMakeLists.txt +++ b/src/ccache/CMakeLists.txt @@ -71,6 +71,9 @@ endif() if(HTTP_STORAGE_BACKEND) target_compile_definitions(ccache_framework PUBLIC -DHAVE_HTTP_STORAGE_BACKEND) target_link_libraries(ccache_framework PRIVATE dep_cpphttplib) + if(CMAKE_SYSTEM_NAME STREQUAL "SunOS") + target_link_libraries(ccache_framework PRIVATE socket) + endif() endif() add_executable(test-lockfile test_lockfile.cpp)