From 19c5e71a7670af3786031aa09a2d88f3ead6cd3b Mon Sep 17 00:00:00 2001 From: Eugene Shalygin Date: Sat, 21 Jan 2017 20:05:28 +0100 Subject: [PATCH] cmake: make some compile definitions global in Windows --- cmake/Modules/winconf.cmake | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmake/Modules/winconf.cmake b/cmake/Modules/winconf.cmake index 7981e8a03..e239ce07e 100644 --- a/cmake/Modules/winconf.cmake +++ b/cmake/Modules/winconf.cmake @@ -9,7 +9,10 @@ set(LibtorrentRasterbar_CUSTOM_DEFINITIONS -DBOOST_EXCEPTION_DISABLE -DBOOST_SYSTEM_STATIC_LINK=1 -DTORRENT_USE_OPENSSL - -DUNICODE + -D__USE_W32_SOCKETS + -D_FILE_OFFSET_BITS=64) + +add_definitions(-DUNICODE -D_UNICODE -DWIN32 -D_WIN32 @@ -18,9 +21,7 @@ set(LibtorrentRasterbar_CUSTOM_DEFINITIONS -D_WIN32_IE=0x0500 -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE - -D__USE_W32_SOCKETS - -D_FILE_OFFSET_BITS=64) - +) # and boost set(Boost_USE_STATIC_LIBS True) # set(Boost_USE_STATIC_RUNTIME True)