Cound not link with a newer QGIS libraries in cmake
I have a problem with linking QGIS libraries with a newer version ,
i m using CENTOS 7 , there is an old QGIS version ( QGIS 2.14 )in /usr/lib64 which contains libqgis*.so and there is another newest QGIS version ( 3.18 ) installed in /sir/LIB_QGIS/QGIS3 , i created a cmake program to force using the newer version but the problem is that my program still link with the oldest one ( in usr/lib64 )
here is my CMakeLists.txt