diff --git a/modules/cvv/CMakeLists.txt b/modules/cvv/CMakeLists.txt index 709464ee8..c264ef1ea 100644 --- a/modules/cvv/CMakeLists.txt +++ b/modules/cvv/CMakeLists.txt @@ -1,4 +1,4 @@ -if(NOT HAVE_QT5 OR NOT HAVE_CXX11) +if(NOT HAVE_QT OR NOT HAVE_CXX11 OR QT_VERSION_MAJOR LESS 5) ocv_module_disable(cvv) return() endif() diff --git a/modules/sfm/CMakeLists.txt b/modules/sfm/CMakeLists.txt index 22ff5c426..0f61d9b5c 100644 --- a/modules/sfm/CMakeLists.txt +++ b/modules/sfm/CMakeLists.txt @@ -117,6 +117,11 @@ ocv_add_module(sfm add_definitions(/DGLOG_NO_ABBREVIATED_SEVERITIES) # avoid ERROR macro conflict in glog (ceres dependency) +if(WIN32) + # Avoid error due to min/max being already defined as a macro + add_definitions(-DNOMINMAX) +endif(WIN32) + ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wshadow