X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=CMakeLists.txt;h=38886d6599ab08e0eed0d65f678a967a2836d5df;hp=367014648760a9f887e069620cd18f8563cdce69;hb=79e5fd2fa293cf03269d4b7bba9ed7a31dda1cd8;hpb=b8d8ea5abc428bc1991357e40a086b3cb34e68d9 diff --git a/CMakeLists.txt b/CMakeLists.txt index 36701464..38886d65 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,10 @@ cmake_minimum_required(VERSION 3.4.0 FATAL_ERROR) # the alternatives are far, far worse. if ("${CMAKE_GENERATOR}" MATCHES "Visual Studio 15( 2017)? Win64") set(CMAKE_GENERATOR_TOOLSET "v141truev141") + set(MSVC_IS_2017 ON) elseif ("${CMAKE_GENERATOR}" STREQUAL "Visual Studio 14 2015 Win64") set(CMAKE_GENERATOR_TOOLSET "v140truev140") + set(MSVC_IS_2017 OFF) else() message(FATAL_ERROR "This build script only supports building Folly on 64-bit Windows with Visual Studio 2015 or Visual Studio 2017.") endif()