Skip to content

Commit

Permalink
Remove setting of /Z7 flag on MSVC
Browse files Browse the repository at this point in the history
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 <noreply@github.com>
  • Loading branch information
alanxz committed Jan 5, 2024
1 parent 0e5eb5c commit 7337e10
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions librabbitmq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 7337e10

Please sign in to comment.