mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
libwinpr-winsock: fix build on Windows
This commit is contained in:
@@ -43,8 +43,8 @@ WINPR_API void* _aligned_offset_recalloc(void* memblock, size_t num, size_t size
|
||||
|
||||
WINPR_API size_t _aligned_msize(void* memblock, size_t alignment, size_t offset);
|
||||
|
||||
#endif
|
||||
|
||||
WINPR_API void _aligned_free(void* memblock);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* WINPR_CRT_H */
|
||||
|
||||
@@ -26,8 +26,13 @@ endif()
|
||||
|
||||
set_target_properties(winpr-winsock PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")
|
||||
|
||||
if(WITH_MONOLITHIC_BUILD)
|
||||
if(WIN32)
|
||||
set(WINPR_WINSOCK_LIBS ${WINPR_WINSOCK_LIBS} ws2_32)
|
||||
endif()
|
||||
|
||||
if(WITH_MONOLITHIC_BUILD)
|
||||
set(WINPR_LIBS ${WINPR_LIBS} ${WINPR_WINSOCK_LIBS} PARENT_SCOPE)
|
||||
else()
|
||||
target_link_libraries(winpr-winsock ${WINPR_WINSOCK_LIBS})
|
||||
install(TARGETS winpr-winsock DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user