Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
Created by: xiaohuang1227
-- Building the mobile framework -- NEON is enabled on arm-v7a with hard float CMake Error at /opt/cmake-3.10/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) Call Stack (most recent call first): /opt/cmake-3.10/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /opt/cmake-3.10/share/cmake-3.10/Modules/FindOpenMP.cmake:447 (find_package_handle_standard_args) cmake/cross_compiling/postproject.cmake:71 (find_package) CMakeLists.txt:132 (include)
-- Configuring incomplete, errors occurred! See also "/opt/Paddle-Lite/build.lite.armlinux.armv7hf.gcc/CMakeFiles/CMakeOutput.log". See also "/opt/Paddle-Lite/build.lite.armlinux.armv7hf.gcc/CMakeFiles/CMakeError.log".
用海思编译器hisiv500编译Paddle-Lite的时候出现以上问题。hisiv500编译器支持OpenMP,因为我通过以下指令编译其他工程的时候可以通过。麻烦大佬解答一下,感谢! SET ( CMAKE_CXX_FLAGS "-std=c++11 -mcpu=cortex-a7 -march=armv7-a -mfloat-abi=hard -mfpu=neon-vfpv4 -fopenmp ${CMAKE_CXX_FLAGS}" )