- removed the XP warning from the CMake project.

This now got even triggered in 64 bit and overall is mostly pointless, considering the extremely low user share of XP.
This commit is contained in:
Christoph Oelckers 2019-02-23 13:07:43 +01:00
parent b542d1371d
commit 6be073f528

View file

@ -13,21 +13,6 @@ endif()
list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
include( FindPackageHandleStandardArgs )
# Produce a warning if XP support will be missing when building a 32 bit target for MSVC.
if( MSVC )
if(NOT "${CMAKE_GENERATOR}" MATCHES "(Win64|IA64)")
list( APPEND WINXP_TOOLSETS v140_xp v141_xp)
list( FIND WINXP_TOOLSETS "${CMAKE_GENERATOR_TOOLSET}" HAVE_WINXP_SUPPORT)
if( HAVE_WINXP_SUPPORT EQUAL -1 )
string( REPLACE ";" " or " WINXP_TOOLSETS_STR "${WINXP_TOOLSETS}" )
message( WARNING "This project supports Windows XP but you must set the optional toolset to ${WINXP_TOOLSETS_STR} manually to have it in your build!\n"
"Assign toolset's name to CMAKE_GENERATOR_TOOLSET variable or use -T <toolset> from the command prompt." )
endif()
endif()
endif()
# Support cross compiling
option( FORCE_CROSSCOMPILE "Turn on cross compiling." NO )
if( FORCE_CROSSCOMPILE )