From 442076afbfe5d5d5f5b82552a9e12bb4f27e77fd Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Tue, 19 Dec 2023 17:26:11 -0800 Subject: [PATCH] Test --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2980dbde0..c1f23fc17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,10 +27,10 @@ set(BREAKPADCOMMON_LIB_HEADERS ${BREAKPAD_SRC_DIR}/common/string_conversion.h) if(WIN32) - add_definitions(_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS - _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING - UNICODE - _UNICODE) + add_compile_definitions(_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS + _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING + UNICODE + _UNICODE) include_directories(${BREAKPAD_SRC_DIR}/third_party/getopt) include_directories(${BREAKPAD_SRC_DIR}/third_party/windows) @@ -72,7 +72,7 @@ else() ${BREAKPAD_SRC_DIR}/client/minidump_file_writer.h) if(APPLE) - add_definitions(HAVE_MACH_O_NLIST_H) + add_compile_definitions(HAVE_MACH_O_NLIST_H) list(APPEND BREAKPADCOMMON_LIB_SRCS ${BREAKPAD_SRC_DIR}/common/mac/MachIPC.mm @@ -108,7 +108,7 @@ else() ${CLIENT_SRC_DIR}/handler/exception_handler.h ${CLIENT_SRC_DIR}/handler/minidump_generator.h) elseif(UNIX) - add_definitions(HAVE_A_OUT_H) + add_compile_definitions(HAVE_A_OUT_H) set(BREAKPADCOMMON_LIB_GETCONTEXT_SRCS ${BREAKPAD_SRC_DIR}/common/linux/breakpad_getcontext.S)