mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Add better controls over MinGW jobs to CMake
This commit is contained in:
@@ -30,7 +30,7 @@ if (NOT MINGW AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" AND NOT ${CMAKE_SYS
|
||||
endif()
|
||||
|
||||
if (NOT DISABLE_NETWORK OR NOT DISABLE_HTTP)
|
||||
if (WIN32)
|
||||
if (WIN32 AND NOT MINGW_TARGET_NT5_1)
|
||||
target_link_libraries(${PROJECT_NAME} bcrypt)
|
||||
else ()
|
||||
if (APPLE)
|
||||
@@ -55,7 +55,7 @@ if (NOT DISABLE_NETWORK AND WIN32)
|
||||
endif ()
|
||||
|
||||
if (NOT DISABLE_HTTP)
|
||||
if (WIN32)
|
||||
if (WIN32 AND NOT MINGW_TARGET_NT5_1)
|
||||
target_link_libraries(${PROJECT_NAME} winhttp)
|
||||
else ()
|
||||
PKG_CHECK_MODULES(LIBCURL REQUIRED libcurl)
|
||||
@@ -146,8 +146,10 @@ else ()
|
||||
endif ()
|
||||
|
||||
if (MINGW)
|
||||
# Hardcode libraries used by libzip on mingw
|
||||
target_link_libraries(${PROJECT_NAME} crypto ws2_32)
|
||||
# Hardcode libraries used on mingw
|
||||
target_link_libraries(${PROJECT_NAME} crypto ws2_32 tasn1 unistring iconv p11-kit hogweed gmp nettle)
|
||||
# Link in libssp
|
||||
target_link_libraries(${PROJECT_NAME} -fstack-protector-strong)
|
||||
endif()
|
||||
|
||||
if (UNIX AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "BSD")
|
||||
|
||||
Reference in New Issue
Block a user