Skip to content

Commit

Permalink
Fix reference to undefined target in CMakeLists.txt
Browse files Browse the repository at this point in the history
Corrects bug where cmake fails on MacOS when building static-only
library with an error that looks like:

CMake Error at librabbitmq/CMakeLists.txt:143 (set_target_properties):
  set_target_properties Can not find target to add properties to: rabbitmq

Fixed: #796

Signed-off-by: GitHub <[email protected]>
  • Loading branch information
alanxz authored Jan 4, 2024
1 parent a4066eb commit bcc48a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librabbitmq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ if(BUILD_STATIC_LIBS)
)

if (APPLE)
set_target_properties(rabbitmq PROPERTIES
set_target_properties(rabbitmq-static PROPERTIES
MACHO_CURRENT_VERSION ${RMQ_SOVERSION}.${RMQ_SOVERSION_AGE}.${RMQ_SOVERSION_REVISION}
MACHO_COMPATIBILITY_VERSION ${RMQ_SOVERSION}
)
Expand Down

0 comments on commit bcc48a7

Please sign in to comment.