Supporting Both
It's often useful to let your build script download Matplot++ when find_package fails. If using CPM.cmake, you can set the CPM_USE_LOCAL_PACKAGES
option to try to find_package(Matplot++)
before download Matplot++.
If using FetchContent, you can use the following pattern:
1 2 3 4 |
|