OpenMP with CMake
CMake allows hinting of package / library location through CMake
variable ${PACKAGE_NAME}_ROOT
or
environment variable ${PACKAGE_NAME}_ROOT.
For example, to hint OpenMP location, set environment variable OPENMP_ROOT
to the location of OpenMP as in this standalone
OpenMP CMake example.
Note that macOS needs a hint to the location of OpenMP in the example.