Skip to content

Commit db4fcf9

Browse files
authored
Merge pull request #1045 from traversaro/patch-2
Change CMake package name of C++ library to msgpackc-cxx
2 parents 7c3ef8e + 0726c3d commit db4fcf9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CMAKE_MINIMUM_REQUIRED (VERSION 3.1 FATAL_ERROR)
22

33
CMAKE_POLICY (SET CMP0054 NEW)
44

5-
PROJECT (msgpack LANGUAGES CXX)
5+
PROJECT (msgpackc-cxx LANGUAGES CXX)
66

77
ADD_LIBRARY (msgpackc-cxx INTERFACE)
88

@@ -216,23 +216,23 @@ SET (cmake_config_path "${CMAKE_INSTALL_LIBDIR}/cmake/msgpackc-cxx")
216216

217217
# Configure the main package file from source tree.
218218
CONFIGURE_PACKAGE_CONFIG_FILE (
219-
msgpack-config.cmake.in
220-
"${CMAKE_CURRENT_BINARY_DIR}/msgpack-config.cmake"
219+
msgpackc-cxx-config.cmake.in
220+
"${CMAKE_CURRENT_BINARY_DIR}/msgpackc-cxx-config.cmake"
221221
INSTALL_DESTINATION "${cmake_config_path}"
222222
)
223223

224224
# Write package version file.
225225
WRITE_BASIC_PACKAGE_VERSION_FILE (
226-
msgpack-config-version.cmake
226+
msgpackc-cxx-config-version.cmake
227227
VERSION ${VERSION}
228228
COMPATIBILITY SameMajorVersion
229229
${extra_version_file_args}
230230
)
231231

232232
# Install the generated package version file and the main package file.
233233
INSTALL (FILES
234-
"${CMAKE_CURRENT_BINARY_DIR}/msgpack-config.cmake"
235-
"${CMAKE_CURRENT_BINARY_DIR}/msgpack-config-version.cmake"
234+
"${CMAKE_CURRENT_BINARY_DIR}/msgpackc-cxx-config.cmake"
235+
"${CMAKE_CURRENT_BINARY_DIR}/msgpackc-cxx-config-version.cmake"
236236
DESTINATION "${cmake_config_path}"
237237
COMPONENT msgpackc-cxx
238238
)

test-install/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project(test-install LANGUAGES CXX)
44

55
set(CMAKE_CXX_STANDARD_REQUIRED ON)
66

7-
find_package(msgpack REQUIRED)
7+
find_package(msgpackc-cxx REQUIRED)
88

99
add_executable(test-install simple.cpp)
1010
target_link_libraries(test-install PRIVATE msgpackc-cxx)

0 commit comments

Comments
 (0)