Skip to content

Commit f6d4704

Browse files
authored
Change CMake package name of C++ library to msgpackc-cxx
1 parent 7c3ef8e commit f6d4704

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
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
)

0 commit comments

Comments
 (0)