File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ option( CPP-NETLIB_ENABLE_HTTPS "Build cpp-netlib with support for https if Open
15
15
option ( CPP-NETLIB_STATIC_OPENSSL "Build cpp-netlib using static OpenSSL" OFF )
16
16
option ( CPP-NETLIB_STATIC_BOOST "Build cpp-netlib using static Boost" OFF )
17
17
18
+ if (NOT DEFINED CPP-NETLIB_WINAPI_VERSION )
19
+ set (CPP-NETLIB_WINAPI_VERSION 0x0501 )
20
+ endif ()
21
+
18
22
include (GNUInstallDirs )
19
23
20
24
# determine install path for CMake config files
@@ -116,7 +120,7 @@ endif()
116
120
117
121
118
122
if (WIN32 )
119
- target_compile_definitions (cppnetlib INTERFACE _WIN32_WINNT=0x0501 )
123
+ target_compile_definitions (cppnetlib INTERFACE _WIN32_WINNT=${CPP-NETLIB_WINAPI_VERSION} BOOST_USE_WINAPI_VERSION=${CPP-NETLIB_WINAPI_VERSION} )
120
124
121
125
if (MSVC )
122
126
target_compile_options (cppnetlib INTERFACE /bigobj )
You can’t perform that action at this time.
0 commit comments