Merge pull request #1088 from winterheart/windows-compile

Fix compilation on MSVC for 32bit profile. (fix #1086)
This commit is contained in:
David Capello 2016-04-25 12:40:55 -03:00
commit be063fded7

View File

@ -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)