From eda468b272ce818393f65ee167233012187d5b3d Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Mon, 25 Apr 2016 20:06:40 +0500 Subject: [PATCH] Fix compilation on MSVC for 32bit profile. Option "/SUBSYSTEM:WINDOWS,5.01" cause failing compilation checkings. It is near to impossible compile current cmake-project on Windows XP, and since this statement doing nothing else than CMake can do themself, let's just delete them. Tested on Windows 10 / MSVC 2015 on 32 and 64 bit profiles. Fixes issue #1086. --- src/CMakeLists.txt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index afc8714b8..8585516bb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,14 +25,6 @@ if(MSVC) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:LIBCMT") endif() - if (CMAKE_CL_64) - # 64 bits - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MACHINE:X64") - else() - # Add support for Windows XP with 5.01 subsystem - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MACHINE:X86 /SUBSYSTEM:WINDOWS,5.01") - endif() - add_definitions(-D_SCL_SECURE_NO_WARNINGS) endif(MSVC)