Skip to content
  • Brad King's avatar
    CUDA: Do not create CMAKE_CUDA_HOST_COMPILER cache entry · bff4651f
    Brad King authored
    Users can create it through an explicit command-line option if desired.
    
    Initializing the variable as an empty cache entry can wipe out a normal
    variable of the same name that may have been set by a toolchain file.
    Since commit v3.8.0-rc1~261^2~11 (CUDA: Use the host compiler for
    linking CUDA executables and shared libs, 2016-09-19) we save the value
    of `CMAKE_CUDA_HOST_COMPILER` persistently in the compiler information
    file as a normal variable.
    
    Fixes: #17935
    bff4651f