Skip to content

Commit

Permalink
Fixed compatibility with old CMake Versions (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold authored Nov 2, 2022
1 parent 094be9c commit f59da78
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
25 changes: 13 additions & 12 deletions tcp_pubsub/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,22 @@ create_source_tree(${includes} ${sources})

set(TCP_PUBSUB_INSTALL_CMAKE_DIR "lib/cmake/tcp_pubsub")

# Install Runtime
install(
TARGETS ${PROJECT_NAME}
EXPORT tcp_pubsubRuntime
RUNTIME DESTINATION "bin"
COMPONENT tcp_pubsub_runtime
)

# Install libs (-> dev package)
# Install Runtime & Libs
install(
TARGETS ${PROJECT_NAME}
EXPORT tcp_pubsubTargets
LIBRARY DESTINATION "lib"
ARCHIVE DESTINATION "lib"
COMPONENT tcp_pubsub_dev

RUNTIME
DESTINATION "bin"
COMPONENT tcp_pubsub_runtime

LIBRARY
DESTINATION "lib"
COMPONENT tcp_pubsub_runtime

ARCHIVE
DESTINATION "lib"
COMPONENT tcp_pubsub_dev
)

# Install public header files (-> dev package)
Expand Down
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 2)
set(TCP_PUBSUB_VERSION_PATCH 3)

0 comments on commit f59da78

Please sign in to comment.