diff --git a/CMakeLists.txt b/CMakeLists.txt index 67b49f2ed4d91d9198b0c0425cb293be04e287f0..573524796c9f6e2f8efa9cdd1d2818b848139b7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -151,7 +151,6 @@ option(OGS_FATAL_ABORT "Abort in OGS_FATAL" OFF) # Compiler flags set(OGS_CXX_FLAGS "" CACHE STRING "Additional C++ compiler flags.") -option(STL_NO_DEBUG "Disable STL debug in debug build" OFF) # Print CMake variable values if(OGS_CMAKE_DEBUG) diff --git a/scripts/cmake/CompilerSetup.cmake b/scripts/cmake/CompilerSetup.cmake index 6ba030fc59041f07cfb5d6d51866cc9893554ba5..d06d9377b9cb0d17c331b295e0886b3a34a6ff71 100644 --- a/scripts/cmake/CompilerSetup.cmake +++ b/scripts/cmake/CompilerSetup.cmake @@ -29,14 +29,6 @@ endif() # GNU-like compiler if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL) - if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT STL_NO_DEBUG) - # Enable assertions in STL in debug mode. - add_compile_options( - -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_ASSERT -D_GLIBCXX_DEBUG_PEDASSERT - -D_GLIBCXX_DEBUG_VERIFY - ) - endif() - # Coloring output option(FORCE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." ON