From 664d44bc713db051d024c6edc4e7117c48047144 Mon Sep 17 00:00:00 2001 From: Pedro Larroy Date: Tue, 4 Feb 2020 19:15:15 +0000 Subject: [PATCH] CR --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 617fce503207..3d2b59cfd78e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,8 +82,7 @@ message(STATUS "CMake version '${CMAKE_VERSION}' using generator '${CMAKE_GENERA project(mxnet C CXX) if(USE_CUDA) cmake_minimum_required(VERSION 3.13.2) # CUDA 10 (Turing) detection available starting 3.13.2 - if (NOT MSVC AND (NOT DEFINED CMAKE_CUDA_COMPILER OR "${CMAKE_CUDA_COMPILER}" STREQUAL "CMAKE_CUDA_COMPILER-NOTFOUND") - AND EXISTS "/usr/local/cuda/bin/nvcc") + if (UNIX AND NOT CMAKE_CUDA_COMPILER_LOADED AND EXISTS "/usr/local/cuda/bin/nvcc") set(CMAKE_CUDA_COMPILER "/usr/local/cuda/bin/nvcc") message(WARNING "CMAKE_CUDA_COMPILER guessed: ${CMAKE_CUDA_COMPILER}") endif()