Skip to content

Commit d9440ad

Browse files
committed
Install version/config files under CMAKE_INSTALL_LIBDIR
Prior to the c_master/cpp_master split, this is where the files were installed (c.f., https://github.com/msgpack/msgpack-c/blob/6e7deb809120881634b3ca895e66b2a946084f34/CMakeLists.txt#L454) but this was changed to use "lib/" directly when updating the C++-only packaging. Re-instate the use of CMAKE_INSTALL_LIBDIR so the user can control where they are installed and they follow the typical convention for location.
1 parent b350a00 commit d9440ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ INCLUDE (CMakePackageConfigHelpers)
211211
IF (NOT (CMAKE_VERSION VERSION_LESS 3.14))
212212
SET (extra_version_file_args ARCH_INDEPENDENT)
213213
ENDIF ()
214-
SET (cmake_config_path "lib/cmake/msgpackc-cxx")
214+
SET (cmake_config_path "${CMAKE_INSTALL_LIBDIR}/cmake/msgpackc-cxx")
215215

216216
# Configure the main package file from source tree.
217217
CONFIGURE_PACKAGE_CONFIG_FILE (

0 commit comments

Comments
 (0)