Skip to content

Commit

Permalink
CMake: Make sure _GLIBCXX_ASSERTIONS is disabled in release builds
Browse files Browse the repository at this point in the history
(cherry picked from commit d8cc75c)
  • Loading branch information
dscharrer committed Aug 12, 2021
1 parent eb5ae43 commit 4e3af2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/BuildType.cmake
Expand Up @@ -412,6 +412,10 @@ else(MSVC)

endforeach(flag_var)

if(NOT DEBUG AND NOT IS_LIBCXX)
add_cxxflag("-Wp,-U_GLIBCXX_ASSERTIONS")
endif()

if(CMAKE_BUILD_TYPE STREQUAL "Debug")

# set debug symbol level to -g3
Expand Down

0 comments on commit 4e3af2d

Please sign in to comment.