Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)