CMake3.15缺少OMP,编译报错Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
Created by: ysh329
使用最新的release版本的CMake会报错
编译:
./lite/tools/build.sh \
--arm_os=android \
--arm_abi=armv7 \
--arm_lang=gcc \
--android_stl=c++_static \
full_publish
错误:
-- Found OpenMP_C: -fopenmp (found version "4.0")
CMake Error at /opt/cmake-3.15.4-Linux-x86_64/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
Call Stack (most recent call first):
/opt/cmake-3.15.4-Linux-x86_64/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/opt/cmake-3.15.4-Linux-x86_64/share/cmake-3.15/Modules/FindOpenMP.cmake:477 (find_package_handle_standard_args)
cmake/cross_compiling/postproject.cmake:66 (find_package)
CMakeLists.txt:109 (include)
-- Configuring incomplete, errors occurred!
See also "/home/yuanshuai/code/lite-conv-bn-fuser/build.lite.android.armv7.gcc/CMakeFiles/CMakeOutput.log".
See also "/home/yuanshuai/code/lite-conv-bn-fuser/build.lite.android.armv7.gcc/CMakeFiles/CMakeError.log".