libsocket icon indicating copy to clipboard operation
libsocket copied to clipboard

Fix static library build

Open mertemba opened this issue 10 months ago • 2 comments

The libsocketConfig.cmake.in assumes that the library target is called socket++, but the static library is currently called socket++_int. Thus, using the static build of libsocket with FetchContent is currently broken.

This commit changes the static library target name to the same as the shared library. The drawback is that now BUILD_SHARED_LIBS and BUILD_STATIC_LIBS cannot be enabled both at the same time, because it would lead to a name collision.

mertemba avatar Feb 04 '25 09:02 mertemba