CMake cannot find OpenMP

前端 未结 4 2010
南笙
南笙 2021-02-19 02:07

I am trying to compile with OpenMP. My CMakeLists.txt contains the line

find_package(OpenMP REQUIRED)

and CMake errors out with

4条回答
  •  无人共我
    2021-02-19 03:02

    You should install libomp with brew install libomp

    i use macOS and it worked smoothly for me.

提交回复
热议问题