Skip to content

Commit

Permalink
Merge pull request #1045 from traversaro/patch-2
Browse files Browse the repository at this point in the history
Change CMake package name of C++ library to msgpackc-cxx
  • Loading branch information
redboltz authored Jan 10, 2023
2 parents 7c3ef8e + 0726c3d commit db4fcf9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CMAKE_MINIMUM_REQUIRED (VERSION 3.1 FATAL_ERROR)

CMAKE_POLICY (SET CMP0054 NEW)

PROJECT (msgpack LANGUAGES CXX)
PROJECT (msgpackc-cxx LANGUAGES CXX)

ADD_LIBRARY (msgpackc-cxx INTERFACE)

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

# Configure the main package file from source tree.
CONFIGURE_PACKAGE_CONFIG_FILE (
msgpack-config.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/msgpack-config.cmake"
msgpackc-cxx-config.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/msgpackc-cxx-config.cmake"
INSTALL_DESTINATION "${cmake_config_path}"
)

# Write package version file.
WRITE_BASIC_PACKAGE_VERSION_FILE (
msgpack-config-version.cmake
msgpackc-cxx-config-version.cmake
VERSION ${VERSION}
COMPATIBILITY SameMajorVersion
${extra_version_file_args}
)

# Install the generated package version file and the main package file.
INSTALL (FILES
"${CMAKE_CURRENT_BINARY_DIR}/msgpack-config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/msgpack-config-version.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/msgpackc-cxx-config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/msgpackc-cxx-config-version.cmake"
DESTINATION "${cmake_config_path}"
COMPONENT msgpackc-cxx
)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test-install/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(test-install LANGUAGES CXX)

set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(msgpack REQUIRED)
find_package(msgpackc-cxx REQUIRED)

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

0 comments on commit db4fcf9

Please sign in to comment.