From 69243901ddd5c34039d64d03f66a463a1101e359 Mon Sep 17 00:00:00 2001 From: Francisco Facioni Date: Sun, 8 Jul 2018 01:10:37 +0100 Subject: [PATCH] CMake 3.12 will not detect a variable as empty string (#11584) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4fe900d4694e..483108a68419 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -210,7 +210,7 @@ if(USE_CUDA) find_package(CUDA REQUIRED) add_definitions(-DMSHADOW_USE_CUDA=1) if(FIRST_CUDA AND (NOT USE_OLDCMAKECUDA)) - if(CUDA_TOOLSET STREQUAL "") + if(NOT CUDA_TOOLSET) set(CUDA_TOOLSET "${CUDA_VERSION_STRING}") endif() set(CMAKE_GENERATOR_TOOLSET "cuda=${CUDA_TOOLSET},host=x64")