diff options
author | Wohlstand <admin@wohlnet.ru> | 2025-03-26 15:35:20 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2025-03-26 15:35:20 +0300 |
commit | 083388650662bbc26beafa157124973c7e905396 (patch) | |
tree | d3917e9724a2bedc839420e32c88e34641e63e1c | |
parent | 1a2f8dc08e2edc2040b821260071187409559619 (diff) | |
download | libADLMIDI-083388650662bbc26beafa157124973c7e905396.tar.gz libADLMIDI-083388650662bbc26beafa157124973c7e905396.tar.bz2 libADLMIDI-083388650662bbc26beafa157124973c7e905396.zip |
CMake: Enable stricter debug of STL containers
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a0212c5..06896b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,6 +130,10 @@ if(CMAKE_BUILD_TYPE_LOWER EQUAL "release") add_definitions(-DNDEBUG) ENDIF() +if(CMAKE_BUILD_TYPE_LOWER STREQUAL "debug" AND CMAKE_COMPILER_IS_GNUCXX) + add_definitions(-D_GLIBCXX_DEBUG=1 -D_GLIBCXX_ASSERTIONS=1) +endif() + # Disable bogus MSVC warnings if(MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS) |