nvlink seems not to link for cuda libraries if cross compiling and --cpu-arch=AARCH64 is specified

Cuda separable compilation seems not to work if cross compiling. The test code I am using available here:

https://github.com/siposcsaba89/cuda_separable_compilation_test.git

I get linker errors:
nvlink error : Undefined reference to ‘cudaGetParameterBufferV2’ in ‘CMakeFiles/cuda_separable_compilation_test.dir/main.cu.o’
nvlink error : Undefined reference to ‘cudaLaunchDeviceV2’ in ‘CMakeFiles/cuda_separable_compilation_test.dir/main.cu.o’

nvcc command:
/usr/local/cuda/bin/nvcc -ccbin=/usr/bin/aarch64-linux-gnu-g++ -arch=sm_50 -Xcompiler=-fPIC -Wno-deprecated-gpu-targets -shared -dlink CMakeFiles/cuda_separable_compilation_test.dir/main.cu.o -o CMakeFiles/cuda_separable_compilation_test.dir/cmake_device_link.o

Verbose output:

# _SPACE_= [i]# CUDART=cudart
# _HERE_=/usr/local/cuda/bin # THERE=/usr/local/cuda/bin
# _TARGET_SIZE_= # TARGET_DIR=
# _TARGET_DIR_=targets/aarch64-linux # TOP=/usr/local/cuda/bin/…
# NVVMIR_LIBRARY_DIR=/usr/local/cuda/bin/../nvvm/libdevice # LD_LIBRARY_PATH=/usr/local/cuda/bin/…/lib:
# PATH=/usr/local/cuda/bin/../nvvm/bin:/usr/local/cuda/bin:/home/csaba/bin:/home/csaba/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda/bin/ # INCLUDES="-I/usr/local/cuda/bin/…/targets/aarch64-linux/include"
# LIBRARIES= "-L/usr/local/cuda/bin/../targets/aarch64-linux/lib/stubs" "-L/usr/local/cuda/bin/../targets/aarch64-linux/lib" # CUDAFE_FLAGS=
# PTXAS_FLAGS= # nvlink --arch=sm_50 --register-link-binaries="/tmp/tmpxft_0001adb7_00000000-2_cmake_device_link.reg.c" -m64 “-L/usr/local/cuda/bin/…/targets/aarch64-linux/lib/stubs” “-L/usr/local/cuda/bin/…/targets/aarch64-linux/lib” -cpu-arch=AARCH64 “CMakeFiles/cuda_separable_compilation_test.dir/main.cu.o” -lcudadevrt -o “/tmp/tmpxft_0001adb7_00000000-4_cmake_device_link.sm_50.cubin”
nvlink error : Undefined reference to ‘cudaGetParameterBufferV2’ in ‘CMakeFiles/cuda_separable_compilation_test.dir/main.cu.o’
nvlink error : Undefined reference to ‘cudaLaunchDeviceV2’ in ‘CMakeFiles/cuda_separable_compilation_test.dir/main.cu.o’
[/i]

nvcc version: Cuda compilation tools, release 9.2, V9.2.88

If not cross compiling everything works fine.

I am on Ubuntu 16.04 with cuda 9.2 istalled from dripepx2 PDK5, which contains target files for x86_64 and aarch64 architecture.
In the repo there is a cmake toolchaim file I used for cmake configure, like:
cmake … -DCMAKE_TOOLCHAIN_FILE=$PWD/…/aarch64-linux-gnu.cmake

Could you please help me to resolve this issue? What do I miss?

Thanks in advance,
Csaba