We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents604d50e +48bbadb commit3c777dfCopy full SHA for 3c777df
CMakeLists.txt
@@ -15,6 +15,10 @@ option( CPP-NETLIB_ENABLE_HTTPS "Build cpp-netlib with support for https if Open
15
option( CPP-NETLIB_STATIC_OPENSSL"Build cpp-netlib using static OpenSSL"OFF)
16
option( CPP-NETLIB_STATIC_BOOST"Build cpp-netlib using static Boost"OFF)
17
18
+if (NOTDEFINED CPP-NETLIB_WINAPI_VERSION)
19
+ set(CPP-NETLIB_WINAPI_VERSION 0x0501)
20
+endif()
21
+
22
include(GNUInstallDirs)
23
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(cppnetlibINTERFACE _WIN32_WINNT=0x0501)
123
+ target_compile_definitions(cppnetlibINTERFACE _WIN32_WINNT=${CPP-NETLIB_WINAPI_VERSION} BOOST_USE_WINAPI_VERSION=${CPP-NETLIB_WINAPI_VERSION})
124
125
if (MSVC)
126
target_compile_options(cppnetlibINTERFACE /bigobj)