From 7e3df68fb4c1c2721fcdec15e3b2f00aef840710 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Fri, 18 May 2018 12:50:38 -0400 Subject: [PATCH] State that MSVC Generators require CMake 3.11+ We require CMake 3.11 with the MSVC generator as the $ generator expression is not supported on older versions. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dba4c0700..c50dc159e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,12 +23,12 @@ # - Support for usage requirements # # If you want CUDA support, you will need to have CMake 3.9 on Linux/OSX. -# We require CMake 3.11 on windows as the $ generator -# expression is not supported on older versions. +# We require CMake 3.11 with the MSVC generator as the $ +# generator expression is not supported on older versions. cmake_minimum_required(VERSION 3.3) project (VTKm) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") +if(${CMAKE_GENERATOR} MATCHES "Visual Studio") cmake_minimum_required(VERSION 3.11 FATAL_ERROR) endif()