我正在尝试使用 OpenMP 进行编译。我的CMakeLists.txt
包含行
find_package(OpenMP REQUIRED)
和 CMake 错误
CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
Could not find a configuration file for package openmp.
Set openmp_DIR to the directory containing a CMake configuration file for
openmp. The file will have one of the following names:
openmpConfig.cmake
openmp-config.cmake
检查我的文件系统,我发现我有/usr/share/cmake-2.8/Modules/FindOpenMP.cmake
但没有openmpConfig.cmake
or openmp-config.cmake
。我需要做什么来解决这个问题?