From 905bd334505bbdbcab75d813da0ee701387a3666 Mon Sep 17 00:00:00 2001 From: Stéphane Lenclud Date: Wed, 27 Mar 2019 20:54:09 +0100 Subject: Not changing _ITERATOR_DEBUG_LEVEL default value any more when using default toolchain. Thus making default MSVC build working with default OpenCV static library build. Closes #920. --- cmake/msvc.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake/msvc.cmake') diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake index 8bf431b9..f9ef5fd5 100644 --- a/cmake/msvc.cmake +++ b/cmake/msvc.cmake @@ -20,6 +20,7 @@ SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) #C4928 - illegal copy-initialization, more than one user-defined conversion has been implicitly applied set(warns-disable 4530 4577 4789 4244 4702 4530 4244 4127 4458 4456 4251 4100 4702 4457) +add_definitions(-D_ITERATOR_DEBUG_LEVEL=0) add_definitions(-D_ENABLE_EXTENDED_ALIGNED_STORAGE) add_definitions(-D_ENABLE_ATOMIC_ALIGNMENT_FIX) add_definitions(-D_SILENCE_CXX17_NEGATORS_DEPRECATION_WARNING) -- cgit v1.2.3