Unable to catkin_make with the zed_ros_wrapper with sdk4.0

I am using the ZED2i camera and cloned the new zed_ros_wrapper. it asked me to update the sdk from 3.8 to 4.0, I was also asked to update the cuda version as I was using the cuda-11.7. And I updated it to cuda-12.1. Now when I catkin_make the ros_wrapper puts and error like this -

But I have the cuda12.1 installed. the result of the nvcc --version command is -
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Feb__7_19:32:13_PST_2023
Cuda compilation tools, release 12.1, V12.1.66
Build cuda_12.1.r12.1/compiler.32415258_0

Please help me out.

Hi @amoghv17
Welcome to the Stereolabs community.

When you upgrade the ZED SDK and the ZED ROS wrapper you must clean the CMake cache by cleaning the catkin workspace as explained in the README: