From 1a6b1d3c5d5aa0b8437bd04d7072740a5c6c08f6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 24 Mar 2023 10:43:22 +0100 Subject: cmake: enable assertions for libc++ --- CMakeLists.txt | 1 + userconfig-sthalik@Windows-Clang.cmake | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bf4e4e1a..c913f94b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,6 +152,7 @@ endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL "13.3" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL "13.0") + add_definitions($<$:$<$:-D_LIBCPP_ENABLE_ASSERTIONS>>) add_compile_options(-Wno-reserved-macro-identifier) add_compile_options($<$:-Wno-ambiguous-reversed-operator>) endif() diff --git a/userconfig-sthalik@Windows-Clang.cmake b/userconfig-sthalik@Windows-Clang.cmake index b41dab64..b0d94ebc 100644 --- a/userconfig-sthalik@Windows-Clang.cmake +++ b/userconfig-sthalik@Windows-Clang.cmake @@ -1,5 +1,4 @@ if(CMAKE_BUILD_TYPE STREQUAL "DEBUG") - add_definitions(-D_LIBCPP_ENABLE_ASSERTIONS=1) add_compile_options(-mavx2) if(FLOORMAT_WITH-COVERAGE) set(CMAKE_BUILD_TYPE DEBUG CACHE STRING "" FORCE) -- cgit v1.2.3