Trying to build a C++17 project with CUDA 11, CMake using NVCC and MSVC host compiler. This is supposed to be supported in CUDA 11, right? I don’t want to build CUDA code with C++14 while host code is using C++17 features.
Tried variations on:
target_compile_options(${TEST_EXE} PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:–std=c++17>)
get an error in CMake:
[CMake] Target “…” requires the language dialect “CUDA17” (with compiler extensions), but CMake does not know the compile flags to use to enable it.
Any help, please?