Skip to content

Commit

Permalink
Fix the libSimpleAmqpClient.pc.in template to avoid windows issues (#337
Browse files Browse the repository at this point in the history
)

* Use the proper dll name and hint boost includes (this way dependency is propagated and FindBoost is not necessary in dependent projects)

Signed-off-by: Guybrush <miguel.barro@live.com>
  • Loading branch information
MiguelBarro committed Mar 15, 2024
1 parent 058ff39 commit a531f72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -231,6 +231,11 @@ set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix "\${prefix}")
set(libdir ${CMAKE_INSTALL_LIBDIR})
set(includedir "\${prefix}/include")
if(WIN32)
get_target_property(SIMPLEAMQPCLIENT_LIB SimpleAmqpClient OUTPUT_NAME)
else(WIN32)
set(SIMPLEAMQPCLIENT_LIB SimpleAmqpClient)
endif(WIN32)

foreach(_lib ${Boost_LIBRARIES})
get_filename_component(_LIBPATH ${_lib} PATH)
Expand Down
4 changes: 2 additions & 2 deletions libSimpleAmqpClient.pc.in
Expand Up @@ -7,6 +7,6 @@ Name: SimpleAmqpClient
Description: C++ wrapper of rabbitmq-c AMQP client library
Version: @SAC_APIVERSION@
Requires.private: librabbitmq
Libs: -L${libdir} -lSimpleAmqpClient
Libs: -L${libdir} -l@SIMPLEAMQPCLIENT_LIB@
Libs.private: @libs_private@
CFlags: -I${includedir}
CFlags: -I${includedir} -I@Boost_INCLUDE_DIRS@

0 comments on commit a531f72

Please sign in to comment.