提交 4b4e30f6 编写于 作者: V Vadim Pisarevsky

fixed gcc dwarf2 check

上级 13a9129d
......@@ -366,7 +366,13 @@ set(WITH_EIGEN ON CACHE BOOL "Include Eigen2/Eigen3 support")
set(WITH_CUDA ON CACHE BOOL "Include NVidia Cuda Runtime support")
if(WIN32)
if (MINGW AND ${CMAKE_OPENCV_GCC_INFO_FULL} MATCHES "--with-dwarf2")
set(MINGW_DWARF2 0)
if (MINGW)
if(${CMAKE_OPENCV_GCC_INFO_FULL} MATCHES "--with-dwarf2")
set(MINGW_DWARF2 1)
endif()
endif()
if (MINGW_DWARF2)
set(WITH_VIDEOINPUT OFF CACHE BOOL "Enable VideoInput support")
else()
set(WITH_VIDEOINPUT ON CACHE BOOL "Enable VideoInput support")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册