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?
When building the library in windows there is some errors with the Windows.h definitions such as:
This is solved by defining the windows version as:
target_compile_definitions(CrossWindow PRIVATE _WIN32_WINNT=0x0A00) # Sets the windows version to windows 10Maybe this should be handled by the internal CMakeLists like one of these solutions?