JuliaComputing / xtrx_julia

XTRX LiteX/LitePCIe based design for Julia Computing
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Cannot specify link libraries for target "CUDA::nvptxcompiler_static" #166

Open zsoerenm opened 1 year ago

zsoerenm commented 1 year ago

With the newest cmake I get the following error while building:

-- Found CUDAToolkit: /home/schoenbrod/xtrx_julia/software/nvidia-cuda/include (found version "11.7.64") 
CMake Error at /usr/share/cmake/Modules/FindCUDAToolkit.cmake:1063 (target_link_libraries):
  Cannot specify link libraries for target "CUDA::nvptxcompiler_static" which
  is not built by this project.
Call Stack (most recent call first):
  CMakeLists.txt:76 (find_package)

-- Configuring incomplete, errors occurred!

This error occurs with cmake version cmake-3.25.0 I had to downgrade to cmake-3.24.3 I guess this error is coming from this change: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7853