Cuda compilation fails with range-v3 0.11.0
I'm using the following
- CMake - 3.21.1
- Platform - Windows
- Generator - Visual Studio 16 2019 - x64
- Cuda - 11.4.1
- Compute - capability 52
The generated solution file fails to compile a very simple cuda file when range-v3 version 0.11.0
is used.
The generated error is
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
It works fine on linux with gcc compiler and makefile generator. Also it works fine with range-v3
version 0.5.0
. Attached is sample CMakeLists.txt file along with sample source files test.cpp
and test.cu
Getting the same error with or without CUDA_SEPARABLE_COMPILATION
ON