Skip to content

Add cmake option to setup _WIN32_WINNT value #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2018
Merged

Add cmake option to setup _WIN32_WINNT value #2

merged 1 commit into from
Apr 3, 2018

Conversation

btolfa
Copy link

@btolfa btolfa commented Apr 3, 2018

I've added CPP-NETLIB_WINAPI_VERSION cmake options.

This option allows us to setup _WIN32_WINNT definition value from cmake command line
Default value is 0x0501 (_WIN32_WINNT_WINXP)
https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt

This option allows to solve linking issues with Boost::Log on Windows

For example, binaries for windows published on www.boost.org are built with _WIN32_WINNT > 0x0600.

This option allows us to setup _WIN32_WINNT definition value
from cmake command line
Default value is 0x0501 (_WIN32_WINNT_WINXP)
https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt
@anonimal anonimal merged commit 48bbadb into anonimal:0.13-release Apr 3, 2018
anonimal added a commit that referenced this pull request Apr 3, 2018
48bbadb Build: Add cmake option CPP-NETLIB_WINAPI_VERSION (Tengiz Sharafiev)
@btolfa btolfa deleted the winapi_version_option branch April 3, 2018 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants