-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Boost with _WIN32_WINNT=_WIN32_WINNT_WIN10.
In addition to a new pair of triplets ({x86,x64}-windows-win10) this requires patching Boost.Log to add an import library. See boostorg/log#177 for details.
- Loading branch information
1 parent
b02b5eb
commit 8021063
Showing
5 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 1d7df88..a22d546 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -330,6 +330,7 @@ if (WIN32 OR CYGWIN) | ||
ws2_32 | ||
mswsock | ||
advapi32 | ||
+ synchronization | ||
) | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 | ||
index c1555a3..eaed8a6 100644 | ||
--- a/build/Jamfile.v2 | ||
+++ b/build/Jamfile.v2 | ||
@@ -32,7 +32,8 @@ lib advapi32 ; | ||
lib secur32 ; | ||
lib ws2_32 ; | ||
lib mswsock ; | ||
-explicit psapi advapi32 secur32 ws2_32 mswsock ; | ||
+lib synchronization ; | ||
+explicit psapi advapi32 secur32 ws2_32 mswsock synchronization ; | ||
|
||
# UNIX libs | ||
lib rt ; | ||
@@ -212,6 +213,7 @@ project boost/log | ||
<target-os>windows:<library>ws2_32 | ||
<target-os>windows:<library>mswsock | ||
<target-os>windows:<library>advapi32 | ||
+ <target-os>windows:<library>synchronization | ||
|
||
<target-os>cygwin:<define>BOOST_USE_WINDOWS_H | ||
# Boost.Interprocess does not compile on Cygwin: https://github.com/boostorg/interprocess/issues/76 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set(VCPKG_TARGET_ARCHITECTURE x64) | ||
set(VCPKG_CRT_LINKAGE dynamic) | ||
set(VCPKG_LIBRARY_LINKAGE dynamic) | ||
|
||
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} /DBOOST_USE_WINAPI_VERSION=0x0602 /D_WIN32_WINNT=0x0602 /DWINVER=0x0602") | ||
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} /DBOOST_USE_WINAPI_VERSION=0x0602 /D_WIN32_WINNT=0x0602 /DWINVER=0x0602") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set(VCPKG_TARGET_ARCHITECTURE x86) | ||
set(VCPKG_CRT_LINKAGE dynamic) | ||
set(VCPKG_LIBRARY_LINKAGE dynamic) | ||
|
||
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} /DBOOST_USE_WINAPI_VERSION=0x0602 /D_WIN32_WINNT=0x0602 /DWINVER=0x0602") | ||
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} /DBOOST_USE_WINAPI_VERSION=0x0602 /D_WIN32_WINNT=0x0602 /DWINVER=0x0602") |