After moving to cmake there are some compile issues on Windows. This patch fixes them, but as I am not very familiar with cmake, maybe adding some options to cmake configuration is the right solution?
Details
Diff Detail
- Repository
- R875 Falkon
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
src/lib/other/registerqappassociation.cpp | ||
---|---|---|
24 | 0x0602 means Windows 8 and above, right? Does that mean Falkon is not buildable on a Windows 7 system? Should be worthwhile getting Falkon to build on a Win7 system. Here's the excerpt from MSDN for the meaning of _WIN32_WINNT: // // _WIN32_WINNT version constants // #define _WIN32_WINNT_NT4 0x0400 // Windows NT 4.0 #define _WIN32_WINNT_WIN2K 0x0500 // Windows 2000 #define _WIN32_WINNT_WINXP 0x0501 // Windows XP #define _WIN32_WINNT_WS03 0x0502 // Windows Server 2003 #define _WIN32_WINNT_WIN6 0x0600 // Windows Vista #define _WIN32_WINNT_VISTA 0x0600 // Windows Vista #define _WIN32_WINNT_WS08 0x0600 // Windows Server 2008 #define _WIN32_WINNT_LONGHORN 0x0600 // Windows Vista #define _WIN32_WINNT_WIN7 0x0601 // Windows 7 #define _WIN32_WINNT_WIN8 0x0602 // Windows 8 #define _WIN32_WINNT_WINBLUE 0x0603 // Windows 8.1 #define _WIN32_WINNT_WINTHRESHOLD 0x0A00 // Windows 10 #define _WIN32_WINNT_WIN10 0x0A00 // Windows 10 |
src/lib/app/datapaths.h | ||
---|---|---|
45 | Why is an empty destructor needed? |
src/lib/other/registerqappassociation.cpp | ||
---|---|---|
24 | Isn't it more like it needs newer msvc than it needs to be built on Win8+? |
src/lib/app/datapaths.h | ||
---|---|---|
45 | The issue was with forward declaring QTemporaryDir. Qt documentation:
So I think MSVC compiler create inline destructor. | |
src/lib/other/registerqappassociation.cpp | ||
24 |
Yeah, you are right. The method showNativeDefaultAppSettingsUi() needs Win8+, will fix it. | |
24 |
I'm using MSVC2015. And the code was compilable when using qmake. I think qmake add Windows headers and define _WIN32_WINNT magically :D |
Well, cmake set _WIN32_WINNT to 0x0600 (on my Windows 10 installation). This update adds a macro to cmake configuration to detect Windows version and defines _WIN32_WINNT.
CMakeLists.txt | ||
---|---|---|
84 | If this is not needed, please remove this TODO note. |