This is an automated email from the ASF dual-hosted git repository.

nswamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new afc4703  CMake: Do not touch CMAKE_GENERATOR_TOOLSET (#13321)
afc4703 is described below

commit afc4703306bdb7918227237c7b45ea19a42339d4
Author: Ruslan Baratov <[email protected]>
AuthorDate: Wed Nov 21 02:22:45 2018 +0000

    CMake: Do not touch CMAKE_GENERATOR_TOOLSET (#13321)
    
    From documentation:
    
      The value of this variable should never be modified by project code.
      ... changing the value has undefined behavior.
    
    * https://cmake.org/cmake/help/latest/variable/CMAKE_GENERATOR_TOOLSET.html
---
 CMakeLists.txt | 1 -
 1 file changed, 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 42f6bff..2b8dda2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -253,7 +253,6 @@ if(USE_CUDA)
     if(NOT CUDA_TOOLSET)
       set(CUDA_TOOLSET "${CUDA_VERSION_STRING}")
     endif()
-    set(CMAKE_GENERATOR_TOOLSET "cuda=${CUDA_TOOLSET},host=x64")
   else()
     set(FIRST_CUDA FALSE)
   endif()

Reply via email to