# Target "nblib" links to target "CUDA::cudart" but the target was not found

**URL:** <https://gromacs.bioexcel.eu/t/target-nblib-links-to-target-cuda-cudart-but-the-target-was-not-found/5070>\
**Category:** User discussions\
**Tags:** installation-error, cmake-error\
**Created:** [October 21, 2022, 2:36am UTC](https://gromacs.bioexcel.eu/t/target-nblib-links-to-target-cuda-cudart-but-the-target-was-not-found/5070 "2022-10-21T02:36:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davidwang](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@Davidwang](https://gromacs.bioexcel.eu/u/Davidwang)\
**Post date:** [October 21, 2022, 2:36am UTC](https://gromacs.bioexcel.eu/t/target-nblib-links-to-target-cuda-cudart-but-the-target-was-not-found/5070/1 "2022-10-21T02:36:03Z")

</div>

GROMACS version: 2022.3  
cuda 11.7  
GROMACS modification: Yes/No  
Here post your question  
cmake … -DGMX\_GPU=CUDA -DGMX\_BUILD\_OWN\_FFTW=OFF -DGMX\_CUDA\_TARGET\_SM=“80” -DGMX\_CUDA\_TARGET\_COMPUTE=“80” -DCMAKE\_INSTALL\_PREFIX=~/gromacs-2022.3 -DCUDA\_TOOLKIT\_ROOT\_DIR=/usr/local/cuda -DCUDA\_CUDART\_LIBRARY=/usr/local/cuda-11.7/targets/x86\_64-linux/lib/libcudart.so  
configuring done  
getting cmake error ： Target “nblib” links to target “CUDA::cudart” but the target was not found.  
how can i solve this error
