From 22ac9a657dd27a3a7cddc67ffd3d09d1b0b1c872 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Fri, 5 Jan 2024 02:27:38 +0000 Subject: [PATCH] Remove setting of /Z7 flag on MSVC The decision to use this flag should be up to the user of this library. If users need this functionality they can include this as a part of CMAKE_C_FLAGS. Signed-off-by: GitHub --- librabbitmq/CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/librabbitmq/CMakeLists.txt b/librabbitmq/CMakeLists.txt index eb57b46d..cd20bae3 100644 --- a/librabbitmq/CMakeLists.txt +++ b/librabbitmq/CMakeLists.txt @@ -152,11 +152,6 @@ if(BUILD_STATIC_LIBS) set_target_properties(rabbitmq-static PROPERTIES OUTPUT_NAME rabbitmq) endif() - if(MSVC) - # Embed debugging info in the library itself instead of generating a .pdb file. - set_target_properties(rabbitmq-static PROPERTIES COMPILE_OPTIONS "/Z7") - endif() - if(INSTALL_STATIC_LIBS) install(TARGETS rabbitmq-static EXPORT "${targets_export_name}" ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}