1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

fix(build) Remove _GLIBXX flags for Columnstore debug builds

This commit is contained in:
Leonid Fedorov
2024-07-04 14:56:51 +00:00
committed by Leonid Fedorov
parent 7dcb999e15
commit ae20481aed
2 changed files with 18 additions and 10 deletions

View File

@ -8,6 +8,12 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.13)
PROJECT(Columnstore)
INCLUDE (CheckCXXSourceCompiles)
# MariaDB server adds this flags by default for Debug builds, and this makes our external projects
# ABI incompatible with debug STL containers
STRING(REPLACE -D_GLIBCXX_DEBUG "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
STRING(REPLACE -D_GLIBCXX_ASSERTIONS "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
FOREACH(p CMP0135)
IF(POLICY ${p})
CMAKE_POLICY(SET ${p} NEW)