From 7337e10105df20b393c5f8ef810c75a7c72eabcc 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}