From 18aab5d5b412023426a02bbc4240debda8734ad0 Mon Sep 17 00:00:00 2001 From: Kearwood Kip Gilbert Date: Thu, 5 Oct 2017 16:32:27 -0700 Subject: [PATCH] Fixing MSVC CMake Builds --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b84f933..b7efb71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,9 @@ set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) -if (NOT WIN32) +if (WIN32) + set(CMAKE_GENERATOR_PLATFORM "Visual Studio 15 2017") +else() set(CMAKE_CXX_COMPILER "clang++") endif()