Skip to content
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

_WIN32_WINNT definition #12

Open
Mario1159 opened this issue Feb 3, 2022 · 0 comments
Open

_WIN32_WINNT definition #12

Mario1159 opened this issue Feb 3, 2022 · 0 comments

Comments

@Mario1159
Copy link
Contributor

When building the library in windows there is some errors with the Windows.h definitions such as:

  • error: 'SetThreadDpiAwarenessContext' was not declared in this scope
  • error: 'GetDpiForWindow' was not declared in this scope

This is solved by defining the windows version as:
target_compile_definitions(CrossWindow PRIVATE _WIN32_WINNT=0x0A00) # Sets the windows version to windows 10

Maybe this should be handled by the internal CMakeLists like one of these solutions?

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

No branches or pull requests

1 participant