summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-28 06:33:18 +0000
committerGitHub <noreply@github.com>2019-03-28 06:33:18 +0000
commit00e4e3f8d006653034147c1904601726f6bc2b1a (patch)
treed5248e807a0109c9ae4c4b9453ed1b5cfc3bc368
parent50e1aa528fa433339405d1a2139a0acdc799c0d1 (diff)
parent905bd334505bbdbcab75d813da0ee701387a3666 (diff)
Merge pull request #922 from opentrack/opencv-friendly-build-options
Using standard _ITERATOR_DEBUG_LEVEL by default
-rw-r--r--cmake/msvc.cmake1
-rw-r--r--cmake/opentrack-platform.cmake1
2 files changed, 1 insertions, 1 deletions
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)
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake
index 24f0f977..be09d6db 100644
--- a/cmake/opentrack-platform.cmake
+++ b/cmake/opentrack-platform.cmake
@@ -124,7 +124,6 @@ if(MSVC)
add_definitions(-D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
- add_definitions(-D_ITERATOR_DEBUG_LEVEL=0)
add_definitions(-D_HAS_EXCEPTIONS=0)
add_definitions(-D_ENABLE_EXTENDED_ALIGNED_STORAGE)