From e89964d592fdc523ac75a397ac8129a4d4f6ab1a Mon Sep 17 00:00:00 2001 From: simon987 Date: Sun, 20 Feb 2022 09:37:24 -0500 Subject: [PATCH] Fix antiword build --- third-party/libscan/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/third-party/libscan/CMakeLists.txt b/third-party/libscan/CMakeLists.txt index 1f8ba9e..bea8756 100644 --- a/third-party/libscan/CMakeLists.txt +++ b/third-party/libscan/CMakeLists.txt @@ -11,11 +11,6 @@ if (SIST_DEBUG) antiword DEBUG ) -else() - add_compile_definitions( - antiword - NDEBUG - ) target_compile_options( antiword PRIVATE @@ -25,6 +20,11 @@ else() -fsanitize=address -fno-inline ) +else() + add_compile_definitions( + antiword + NDEBUG + ) endif() add_library(