Skip to content

Commit 93c446c

Browse files
committed
Enhance Windows compatibility by defining _WIN32_WINNT for boost_beast2 target in CMake and Jamfile
1 parent 6f7648c commit 93c446c

766 files changed

Lines changed: 174268 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ function(boost_beast2_setup_properties target)
160160
endif()
161161
target_compile_definitions(${target} PUBLIC BOOST_BEAST2_NO_LIB)
162162
target_compile_definitions(${target} PRIVATE BOOST_BEAST2_SOURCE)
163+
target_compile_definitions(${target} PRIVATE $<$<PLATFORM_ID:Windows>:_WIN32_WINNT=0x0602>)
163164
if (BUILD_SHARED_LIBS)
164165
target_compile_definitions(${target} PUBLIC BOOST_BEAST2_DYN_LINK)
165166
else ()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1},{"kind":"cmakeFiles","version":1}]}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"cmake" :
3+
{
4+
"generator" :
5+
{
6+
"multiConfig" : true,
7+
"name" : "Visual Studio 17 2022",
8+
"platform" : "x64"
9+
},
10+
"paths" :
11+
{
12+
"cmake" : "C:/Program Files/CMake/bin/cmake.exe",
13+
"cpack" : "C:/Program Files/CMake/bin/cpack.exe",
14+
"ctest" : "C:/Program Files/CMake/bin/ctest.exe",
15+
"root" : "C:/Program Files/CMake/share/cmake-4.2"
16+
},
17+
"version" :
18+
{
19+
"isDirty" : false,
20+
"major" : 4,
21+
"minor" : 2,
22+
"patch" : 0,
23+
"string" : "4.2.0",
24+
"suffix" : ""
25+
}
26+
},
27+
"objects" : [],
28+
"reply" :
29+
{
30+
"client-vscode" :
31+
{
32+
"query.json" :
33+
{
34+
"requests" :
35+
[
36+
{
37+
"kind" : "cache",
38+
"version" : 2
39+
},
40+
{
41+
"kind" : "codemodel",
42+
"version" : 2
43+
},
44+
{
45+
"kind" : "toolchains",
46+
"version" : 1
47+
},
48+
{
49+
"kind" : "cmakeFiles",
50+
"version" : 1
51+
}
52+
],
53+
"responses" :
54+
[
55+
{
56+
"error" : "no buildsystem generated"
57+
},
58+
{
59+
"error" : "no buildsystem generated"
60+
},
61+
{
62+
"error" : "no buildsystem generated"
63+
},
64+
{
65+
"error" : "no buildsystem generated"
66+
}
67+
]
68+
}
69+
}
70+
}
71+
}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"cmake" :
3+
{
4+
"generator" :
5+
{
6+
"multiConfig" : true,
7+
"name" : "Visual Studio 17 2022",
8+
"platform" : "x64"
9+
},
10+
"paths" :
11+
{
12+
"cmake" : "C:/Program Files/CMake/bin/cmake.exe",
13+
"cpack" : "C:/Program Files/CMake/bin/cpack.exe",
14+
"ctest" : "C:/Program Files/CMake/bin/ctest.exe",
15+
"root" : "C:/Program Files/CMake/share/cmake-4.2"
16+
},
17+
"version" :
18+
{
19+
"isDirty" : false,
20+
"major" : 4,
21+
"minor" : 2,
22+
"patch" : 0,
23+
"string" : "4.2.0",
24+
"suffix" : ""
25+
}
26+
},
27+
"objects" : [],
28+
"reply" :
29+
{
30+
"client-vscode" :
31+
{
32+
"query.json" :
33+
{
34+
"requests" :
35+
[
36+
{
37+
"kind" : "cache",
38+
"version" : 2
39+
},
40+
{
41+
"kind" : "codemodel",
42+
"version" : 2
43+
},
44+
{
45+
"kind" : "toolchains",
46+
"version" : 1
47+
},
48+
{
49+
"kind" : "cmakeFiles",
50+
"version" : 1
51+
}
52+
],
53+
"responses" :
54+
[
55+
{
56+
"error" : "no buildsystem generated"
57+
},
58+
{
59+
"error" : "no buildsystem generated"
60+
},
61+
{
62+
"error" : "no buildsystem generated"
63+
},
64+
{
65+
"error" : "no buildsystem generated"
66+
}
67+
]
68+
}
69+
}
70+
}
71+
}

bin64/ALL_BUILD.vcxproj

Lines changed: 193 additions & 0 deletions
Large diffs are not rendered by default.

bin64/ALL_BUILD.vcxproj.filters

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="17.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<CustomBuild Include="C:\dev\repos\MungoG\cursor_boost\libs\beast2\CMakeLists.txt" />
5+
</ItemGroup>
6+
<ItemGroup>
7+
</ItemGroup>
8+
</Project>

0 commit comments

Comments
 (0)