Add support to compile with MSVC 64bits

It's not ready, the program crashes when it starts, but at least we can
compile for 64bits.
This commit is contained in:
David Capello 2014-08-12 07:01:21 -03:00
parent 70f4354f88
commit ebca329112

View File

@ -10,7 +10,11 @@ if(MSVC)
endif()
# Add support for Windows XP
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MACHINE:X86 /SUBSYSTEM:WINDOWS,5.01")
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MACHINE:X64")
else()
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MACHINE:X86 /SUBSYSTEM:WINDOWS,5.01")
endif()
endif(MSVC)
# Libraries in this directory