summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--userconfig-sthalik@Windows-Clang.cmake1
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)