From 34a08454016ac677d70c178ba52ef79743af565f Mon Sep 17 00:00:00 2001 From: user Date: Sun, 26 Dec 2021 05:33:30 +0300 Subject: [PATCH] Define WIN32 for windows targets --- CMakeLists.txt | 1 + src/CMakeLists.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a14288..3d09969 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -201,6 +201,7 @@ if (WIN32) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/qt/res/bitcoin-qt.rc bitcoin-qt.rc) list(APPEND ALL_SOURCES bitcoin-qt.rc) list(APPEND ALL_LIBRARIES ws2_32 shlwapi mswsock ole32 oleaut32 uuid gdi32) + list(APPEND ALL_DEFINITIONS WIN32) endif() if (APPLE) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c5747e9..456c35a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -116,7 +116,8 @@ list(APPEND ALL_LIBRARIES ${Boost_LIBRARIES} ixwebsocket OpenSSL::Crypto) # Windows-specific libraries if (WIN32) - list(APPEND ALL_LIBRARIES kernel32 user32 gdi32 comdlg32 winspool winmm shell32 comctl32 ole32 oleaut32 uuid rpcrt4 advapi32 ws2_32 mswsock shlwapi) + list(APPEND ALL_LIBRARIES kernel32 user32 gdi32 comdlg32 winspool winmm shell32 comctl32 ole32 oleaut32 uuid rpcrt4 advapi32 ws2_32 mswsock shlwapi) + list(APPEND ALL_DEFINITIONS WIN32) endif() # Some systems need rt library -- 1.7.1