summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-09-22 14:10:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-09-22 14:10:43 +0200
commit6c71102493c73d8cd284d0f18ac14743903ff8eb (patch)
tree0a6b74025c00ba9f1bc5ca907de08e750ae28bdf
parentb65bf68f41907fd9d10af33d9dd11747efd3907f (diff)
cmake: disable cpu-heavy msvc debug features
-rw-r--r--cmake/opentrack-platform.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake
index 3e1c1b3f..7e627e64 100644
--- a/cmake/opentrack-platform.cmake
+++ b/cmake/opentrack-platform.cmake
@@ -59,8 +59,8 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
endif()
if(MSVC)
- add_definitions(-DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS)
- add_definitions(-D_ITERATOR_DEBUG_LEVEL=0 -D_ITERATOR_DEBUG_LEVEL=0)
+ add_definitions(-DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_NO_DEBUG_HEAP)
+ add_definitions(-D_ITERATOR_DEBUG_LEVEL=0)
add_definitions(-D_HAS_EXCEPTIONS=0)
if(MSVC_VERSION GREATER 1909) # visual studio 2017
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -permissive- -diagnostics:caret")