diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-24 10:43:22 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-24 10:43:39 +0100 |
commit | 1a6b1d3c5d5aa0b8437bd04d7072740a5c6c08f6 (patch) | |
tree | 0c41c17d8be4b73b7b3ba3c7c58da9c6ee36b8fe | |
parent | b0c238ec74f8c2296d2f82a76147f3a9f417e6bf (diff) |
cmake: enable assertions for libc++
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | userconfig-sthalik@Windows-Clang.cmake | 1 |
2 files changed, 1 insertions, 1 deletions
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($<$<COMPILE_LANGUAGE:CXX>:$<$<CONFIG:DEBUG>:-D_LIBCPP_ENABLE_ASSERTIONS>>) add_compile_options(-Wno-reserved-macro-identifier) add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-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) |