CUDA samples test issue

I’m trying to run the CUDA samples test and I downloaded the zip file from this link:

and extracted it, and also I made a build folder.

However, when I ran cmake .. under the build folder it shows these error:

CMake Error at Samples/4_CUDA_Libraries/nvJPEG/CMakeLists.txt:24 (add_executable):
  Target "nvJPEG" links to target "CUDA::nvjpeg" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at Samples/4_CUDA_Libraries/nvJPEG_encoder/CMakeLists.txt:24 (add_executable):
  Target "nvJPEG_encoder" links to target "CUDA::nvjpeg" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

Before this I just flashed the board with every other component selected as well alone with linux system using the sdkmanager, but seems still sth is missing.

What should I do?

Also the CUDA is 12.6.68 and the jetpack is 6.2.1.