Skip to content

Commit f0b423c

Browse files
authored
cmake: export target with namespace (#60)
* cmake: export target with namespace * bump patch version to 0.4.3
1 parent 99b8780 commit f0b423c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project(console_bridge)
33

44
set (CONSOLE_BRIDGE_MAJOR_VERSION 0)
55
set (CONSOLE_BRIDGE_MINOR_VERSION 4)
6-
set (CONSOLE_BRIDGE_PATCH_VERSION 2)
6+
set (CONSOLE_BRIDGE_PATCH_VERSION 3)
77

88
set (CONSOLE_BRIDGE_VERSION ${CONSOLE_BRIDGE_MAJOR_VERSION}.${CONSOLE_BRIDGE_MINOR_VERSION}.${CONSOLE_BRIDGE_PATCH_VERSION})
99
message (STATUS "${PROJECT_NAME} version ${CONSOLE_BRIDGE_VERSION}")
@@ -97,6 +97,7 @@ write_basic_config_version_file(
9797

9898
install(EXPORT ${PROJECT_NAME}-targets
9999
FILE ${PROJECT_NAME}-targets.cmake
100+
NAMESPACE ${PROJECT_NAME}::
100101
DESTINATION ${CMAKE_CONFIG_INSTALL_DIR})
101102
install(FILES
102103
"${CMAKE_BINARY_DIR}/${cmake_conf_file}"

Diff for: console_bridge-config.cmake.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ set(@PKG_NAME@_CONFIG_INCLUDED TRUE)
88
set(@PKG_NAME@_INCLUDE_DIRS "@PACKAGE_CMAKE_INSTALL_FULL_INCLUDEDIR@")
99

1010
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
11-
set(@PKG_NAME@_LIBRARIES @PKG_NAME@)
11+
set(@PKG_NAME@_LIBRARIES @PKG_NAME@::@PKG_NAME@)

0 commit comments

Comments
 (0)