diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f4df68cc4ca4bfd33dd54d47fd5d8feb59b7a97..f14628bdb94f664ae824a9234e38d4b09a4be444 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -373,7 +373,7 @@ endif ( )
 if( WALBERLA_CXX_COMPILER_IS_GNU OR WALBERLA_CXX_COMPILER_IS_INTEL OR WALBERLA_CXX_COMPILER_IS_CLANG )
     if ( WALBERLA_STL_BOUNDS_CHECKS )
         add_definitions ( "-D_GLIBCXX_DEBUG" )
-        add_definitions ( "-D_LIBCPP_DEBUG" )
+        add_definitions ( "-D_LIBCPP_DEBUG=1" )
     endif()
 endif()