mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 04:51:52 +00:00
Changed: Specify Windows XP as minimum platform (we need that if using Windows 7 SDK with VC++ 2015)
This commit is contained in:
parent
c6b62b8787
commit
e6cf799eb4
1 changed files with 20 additions and 1 deletions
|
@ -68,11 +68,30 @@ MACRO(NL_DEFAULT_PROPS name label)
|
||||||
ENDIF(${type} STREQUAL SHARED_LIBRARY)
|
ENDIF(${type} STREQUAL SHARED_LIBRARY)
|
||||||
|
|
||||||
IF(${type} STREQUAL EXECUTABLE AND WIN32 AND NOT MINGW)
|
IF(${type} STREQUAL EXECUTABLE AND WIN32 AND NOT MINGW)
|
||||||
|
# check if using a GUI
|
||||||
|
GET_TARGET_PROPERTY(_VALUE ${name} WIN32_EXECUTABLE)
|
||||||
|
|
||||||
|
IF(TARGET_X64)
|
||||||
|
# Target Windows XP 64 bits
|
||||||
|
SET(_SUBSYSTEM_VERSION "5.02")
|
||||||
|
ELSE()
|
||||||
|
# Target Windows XP
|
||||||
|
SET(_SUBSYSTEM_VERSION "5.01")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
IF(_VALUE)
|
||||||
|
# GUI
|
||||||
|
SET(_SUBSYSTEM "WINDOWS")
|
||||||
|
ELSE()
|
||||||
|
# Console
|
||||||
|
SET(_SUBSYSTEM "CONSOLE")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET_TARGET_PROPERTIES(${name} PROPERTIES
|
SET_TARGET_PROPERTIES(${name} PROPERTIES
|
||||||
VERSION ${NL_VERSION}
|
VERSION ${NL_VERSION}
|
||||||
SOVERSION ${NL_VERSION_MAJOR}
|
SOVERSION ${NL_VERSION_MAJOR}
|
||||||
COMPILE_FLAGS "/GA"
|
COMPILE_FLAGS "/GA"
|
||||||
LINK_FLAGS "/VERSION:${NL_VERSION_MAJOR}.${NL_VERSION_MINOR}")
|
LINK_FLAGS "/VERSION:${NL_VERSION_MAJOR}.${NL_VERSION_MINOR} /SUBSYSTEM:${_SUBSYSTEM},${_SUBSYSTEM_VERSION}")
|
||||||
ENDIF(${type} STREQUAL EXECUTABLE AND WIN32 AND NOT MINGW)
|
ENDIF(${type} STREQUAL EXECUTABLE AND WIN32 AND NOT MINGW)
|
||||||
ENDMACRO(NL_DEFAULT_PROPS)
|
ENDMACRO(NL_DEFAULT_PROPS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue