mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-18 17:24:28 +08:00
win32: use NOMINMAX to avoid min/max macros being defined
This commit is contained in:
@@ -117,6 +117,11 @@ ocv_add_module(sfm
|
|||||||
|
|
||||||
add_definitions(/DGLOG_NO_ABBREVIATED_SEVERITIES) # avoid ERROR macro conflict in glog (ceres dependency)
|
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
|
ocv_warnings_disable(CMAKE_CXX_FLAGS
|
||||||
-Wundef
|
-Wundef
|
||||||
-Wshadow
|
-Wshadow
|
||||||
|
Reference in New Issue
Block a user