On macOS, CMake cannot find OpenMP, although I've installed OpenMP via Homebrew with
brew install libomp
More precisely, when trying to build openCARP, the CMake configuration command
cmake -S. -B_build
gives the following error:
[...]
CMake Error at /opt/homebrew/Cellar/cmake/3.31.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.31.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
/opt/homebrew/Cellar/cmake/3.31.2/share/cmake/Modules/FindOpenMP.cmake:616 (find_package_handle_standard_args)
CMakeLists.txt:222 (find_package)