Improved options for Visual Studio

This commit is contained in:
FernandoS27 2016-12-11 06:05:30 -05:00
parent d3f8878cec
commit 958818d438

View File

@ -44,7 +44,11 @@ option(CITRA_USE_BUNDLED_QT "Download bundled Qt binaries" OFF)
option(ENABLE_HIGH_OP "Enable highest optimizations possible" OFF) option(ENABLE_HIGH_OP "Enable highest optimizations possible" OFF)
set(CPU_TARGET "base" CACHE STRING "CPU minimum for this build, use base as default") set(CPU_TARGET "base" CACHE STRING "CPU minimum for this build, use base as default")
set(CPU_TYPES "base;pentium4;haswell;skylake;modern") if (MSVC)
set(CPU_TYPES "base;modern intel;modern amd;modern")
else()
set(CPU_TYPES "base;pentium4;haswell;skylake;modern")
endif()
set_property(CACHE CPU_TARGET PROPERTY STRINGS ${CPU_TYPES}) set_property(CACHE CPU_TARGET PROPERTY STRINGS ${CPU_TYPES})
set(CC_OP_LEVEL "") set(CC_OP_LEVEL "")