Check package exists in cmake without reverting to the old policy settings
In my project, I use the Boost and CUDA libraries. Previously, I used find_package(Boost)
and find_package(CUDA)
, followed by if(CUDA_FOUND)
and if(Boost_FOUND)
to check if those packages were available.