From 4933abff981f39a69fb3032eecdf99d01cb666b2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 26 Mar 2023 18:33:31 +0200 Subject: cmake: fix build --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e87ec558..ae1aaec9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -151,7 +151,7 @@ else() endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - add_definitions($<$:$<$:-D_LIBCPP_ENABLE_ASSERTIONS>>) + add_compile_definitions($<$:$<$:_LIBCPP_ENABLE_ASSERTIONS>>) add_compile_options(-Wno-reserved-macro-identifier) add_compile_options($<$:-Wno-ambiguous-reversed-operator>) endif() -- cgit v1.2.3