From 958818d4389e7d5fb3c36ced8a20b1a989c3bc2f Mon Sep 17 00:00:00 2001 From: FernandoS27 Date: Sun, 11 Dec 2016 06:05:30 -0500 Subject: [PATCH] Improved options for Visual Studio --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 429365228..c3778134f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,11 @@ option(CITRA_USE_BUNDLED_QT "Download bundled Qt binaries" 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_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(CC_OP_LEVEL "")