Skip to content

Commit 993a4fe

Browse files
CMake: improved tcp_pubsubConfig.cmake with find_dependency (#20)
- 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
1 parent d83c7c3 commit 993a4fe

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@PACKAGE_INIT@
22

3-
INCLUDE("@PACKAGE_TCP_PUBSUB_INSTALL_CMAKE_DIR@/tcp_pubsubTargets.cmake")
4-
find_package(Threads)
3+
include(CMakeFindDependencyMacro)
4+
find_dependency(Threads)
5+
6+
include("${CMAKE_CURRENT_LIST_DIR}/tcp_pubsubTargets.cmake")

tcp_pubsub/version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
set(TCP_PUBSUB_VERSION_MAJOR 1)
22
set(TCP_PUBSUB_VERSION_MINOR 0)
3-
set(TCP_PUBSUB_VERSION_PATCH 3)
3+
set(TCP_PUBSUB_VERSION_PATCH 4)

0 commit comments

Comments
 (0)