From 42ca21a6d1bdf30682779de8a799dc61983554c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Wed, 4 Apr 2018 00:36:54 +0200
Subject: [PATCH] Added debug mode for standard C++ library in debug mode

---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7c09d21d2..029ea5fda 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,6 +27,9 @@ include_directories(${Kokkos_INCLUDE_DIRS_RET})
 include(GetKokkosCompilerFlags)
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
 
+# Add debug mode for Standard C++ library
+set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG -D_LIBCPP_DEBUG=1")
+
 #------------------------------------------------------
 
 # Rang (colors? Useless thus necessary!)
-- 
GitLab