FindOpenMP doesn't find OpenMP on current macOS
It looks like the tests in FindOpenMP.cmake are not running and finding OpenMP on macOS because they are missing the /usr/local/include
directory.
The proper fix would be to add a search for omp.h
and then use that include directory in the targets, and that would also fix #18098 (closed) and could fix #17474.
Edited by Henry Schreiner