my ultimate goal is to enable our CMake-based build-system to cross-compile applications using CUDA as well as DriveWorks code. So I followed the available documentation (e.g. https://developer.nvidia.com/drive/learn/tutorial-xcompilation ).
I had success cross compiling a hello_world.cpp, so the basic setup seems to be cool.
I went on, compiling CUDA-based code. This failed, the reason is that all nvcc-generated object files are x86-64 and not aarch64.
So I set the CMakeVariables CMAKE_CUDA_HOST_COMPILER and CUDA_HOST_COMPILER, both point to the right position in the filesystem and are equivalent to CMAKE_CXX_COMPILER. But this had no effect on nvcc, it continues to use the x86-64 compiler.
How can I set in the CMakeLists.txt file the host compiler to use by nvcc?
I would expect that the nvcc host compiler is by default CMAKE_CXX_COMPILER, where is the right place to configure that?
Thanks for insights,