1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-17 07:04:18 +08:00

win32: use NOMINMAX to avoid min/max macros being defined

This commit is contained in:
Sergiu Deitsch
2021-10-19 15:27:18 +02:00
parent a1eec2849f
commit e332bce20c

View File

@@ -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