mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-16 15:57:39 +00:00
Fixed MSYS2 build
This commit is contained in:
parent
8245f232d4
commit
be76c58264
2 changed files with 9 additions and 0 deletions
|
@ -107,6 +107,9 @@ include_directories(external/src/robin-hood-hashing/src/include)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(LIBS ${LIBS} ws2_32 iphlpapi userenv psapi)
|
set(LIBS ${LIBS} ws2_32 iphlpapi userenv psapi)
|
||||||
|
if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
|
||||||
|
set(LIBS ${LIBS} bcrypt)
|
||||||
|
endif()
|
||||||
add_definitions(-DCURL_STATICLIB)
|
add_definitions(-DCURL_STATICLIB)
|
||||||
elseif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
|
elseif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
|
||||||
set(LIBS ${LIBS} pthread)
|
set(LIBS ${LIBS} pthread)
|
||||||
|
@ -197,6 +200,9 @@ if (STATIC_BINARY OR STATIC_LIBS)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(STATIC_LIBS ${STATIC_LIBS} ws2_32 iphlpapi userenv psapi wldap32)
|
set(STATIC_LIBS ${STATIC_LIBS} ws2_32 iphlpapi userenv psapi wldap32)
|
||||||
|
if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
|
||||||
|
set(STATIC_LIBS ${STATIC_LIBS} bcrypt)
|
||||||
|
endif()
|
||||||
elseif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
|
elseif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
|
||||||
set(STATIC_LIBS ${STATIC_LIBS} pthread)
|
set(STATIC_LIBS ${STATIC_LIBS} pthread)
|
||||||
elseif (APPLE)
|
elseif (APPLE)
|
||||||
|
|
|
@ -70,6 +70,9 @@ include_directories(googletest/googletest/include)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(LIBS ${LIBS} ws2_32 iphlpapi userenv psapi wldap32)
|
set(LIBS ${LIBS} ws2_32 iphlpapi userenv psapi wldap32)
|
||||||
|
if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
|
||||||
|
set(LIBS ${LIBS} bcrypt)
|
||||||
|
endif()
|
||||||
add_definitions(-DCURL_STATICLIB)
|
add_definitions(-DCURL_STATICLIB)
|
||||||
elseif (NOT APPLE)
|
elseif (NOT APPLE)
|
||||||
set(LIBS ${LIBS} pthread gss dl)
|
set(LIBS ${LIBS} pthread gss dl)
|
||||||
|
|
Loading…
Reference in a new issue