Skip to content

Commit

Permalink
CMake: improved tcp_pubsubConfig.cmake with find_dependency (#20)
Browse files Browse the repository at this point in the history
- Replaced find_package with find_dependency call that is designed to be used in Package configuration files
- Replaced configured install-dir with a lookup in the CURRENT_LIST_DIR
  • Loading branch information
FlorianReimold authored Jan 24, 2023
1 parent d83c7c3 commit 993a4fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tcp_pubsub/cmake/tcp_pubsubConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@PACKAGE_INIT@

INCLUDE("@PACKAGE_TCP_PUBSUB_INSTALL_CMAKE_DIR@/tcp_pubsubTargets.cmake")
find_package(Threads)
include(CMakeFindDependencyMacro)
find_dependency(Threads)

include("${CMAKE_CURRENT_LIST_DIR}/tcp_pubsubTargets.cmake")
2 changes: 1 addition & 1 deletion tcp_pubsub/version.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set(TCP_PUBSUB_VERSION_MAJOR 1)
set(TCP_PUBSUB_VERSION_MINOR 0)
set(TCP_PUBSUB_VERSION_PATCH 3)
set(TCP_PUBSUB_VERSION_PATCH 4)

0 comments on commit 993a4fe

Please sign in to comment.