Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win64
mingw64-SDL2_net
0003-cmake-set-INETLIB-used-for-private-libs-in...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-cmake-set-INETLIB-used-for-private-libs-in-SDL2_net..patch of Package mingw64-SDL2_net
From 4a0edefdc28743a87d4963c8b3254839e366c01f Mon Sep 17 00:00:00 2001 From: Anonymous Maarten <anonymous.maarten@gmail.com> Date: Thu, 1 Dec 2022 17:16:39 +0100 Subject: [PATCH 3/7] cmake: set INETLIB, used for private libs in SDL2_net.pc --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb152c5..5d76fc8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,8 @@ else() find_package(SDL2test) endif() +set(SDLNET_PKGCONFIG_PRIVATE_LIBS) + # Set defaults preventing destination file conflicts set(SDL2NET_DEBUG_POSTFIX "d" CACHE STRING "Name suffix for debug builds") @@ -93,6 +95,7 @@ if(WIN32) endif() target_compile_definitions(SDL2_net PRIVATE _WINSOCK_DEPRECATED_NO_WARNINGS) target_link_libraries(SDL2_net PRIVATE ws2_32 iphlpapi) + list(APPEND SDLNET_PKGCONFIG_PRIVATE_LIBS -lws2_32 -liphlpapi) if(SDL2NET_BUILD_SHARED_LIBS) target_sources(SDL2_net PRIVATE version.rc) endif() @@ -224,6 +227,7 @@ if(SDL2NET_INSTALL) set(SDL_VERSION "${SDL_REQUIRED_VERSION}") string(JOIN " " PC_REQUIRES ${PC_REQUIRES}) string(JOIN " " PC_LIBS ${PC_LIBS}) + string(JOIN " " INETLIB ${SDLNET_PKGCONFIG_PRIVATE_LIBS}) configure_file("${PROJECT_SOURCE_DIR}/SDL2_net.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/SDL2_net.pc.intermediate" @ONLY) file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/SDL2_net-$<CONFIG>.pc" INPUT "${CMAKE_CURRENT_BINARY_DIR}/SDL2_net.pc.intermediate") -- 2.43.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor