1 | initial version |
I open a bug : http://code.opencv.org/issues/3328
Workaround: Replace line 49 to 58 in file opencv-2.4.6.1/cmake/OpenCVFindLibsPerf.cmake :
# --- OpenMP --- if(NOT HAVE_TBB AND NOT HAVE_CSTRIPES) include (FindOpenMP) # --- since cmake version 2.6.3 if (OPENMP_FOUND) set (HAVE_OPENMP TRUE) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") else() set ( HAVE_OPENMP FALSE) endif() else() set(HAVE_OPENMP 0) endif()