Utilities/Release: Configure Windows binary to support Windows XP
Compile with `-D_WIN32_WINNT=0x501` to use a WinXP-compatible API. Compile with `-D_USING_V110_SDK71_` to tell the VS standard library headers that we are building with a WinXP-compatible Windows SDK. Link executables with `-subsystem:console,5.01` to make them runnable on Windows XP. Ideally `cmake-gui` should instead be linked with `-subsystem:windows,5.01` but with the Ninja and Makefile generators CMake adds `-subsystem:windows` after our `-subsystem:console,5.01` flag and the linker seems to interpret this combination as we need.
This commit is contained in:
parent
083312a8fd
commit
fae4779864
|
@ -17,7 +17,11 @@ CMAKE_GENERATOR:INTERNAL=Ninja
|
||||||
BUILD_QtDialog:BOOL:=TRUE
|
BUILD_QtDialog:BOOL:=TRUE
|
||||||
CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL:BOOL=TRUE
|
CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL:BOOL=TRUE
|
||||||
CMake_INSTALL_DEPENDENCIES:BOOL=ON
|
CMake_INSTALL_DEPENDENCIES:BOOL=ON
|
||||||
|
CMAKE_EXE_LINKER_FLAGS:STRING=-machine:x86 -subsystem:console,5.01
|
||||||
")
|
")
|
||||||
|
set(ppflags "-D_WIN32_WINNT=0x501 -D_USING_V110_SDK71_")
|
||||||
|
set(CFLAGS "${ppflags}")
|
||||||
|
set(CXXFLAGS "${ppflags}")
|
||||||
set(ENV ". ~/rel/env")
|
set(ENV ". ~/rel/env")
|
||||||
get_filename_component(path "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
get_filename_component(path "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||||
set(GIT_EXTRA "git config core.autocrlf true")
|
set(GIT_EXTRA "git config core.autocrlf true")
|
||||||
|
|
Loading…
Reference in New Issue