Skip to content

Commit 34e4114

Browse files
authored
Merge pull request #1003 from jamessan/config-installdir
Install version/config files under CMAKE_INSTALL_LIBDIR
2 parents b350a00 + b4d800e commit 34e4114

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ IF (MSGPACK_BUILD_DOCS)
191191
ENDIF ()
192192
ENDIF ()
193193

194+
include (GNUInstallDirs)
195+
194196
# Install library.
195197
INSTALL (TARGETS msgpackc-cxx
196198
EXPORT msgpackc-cxx-targets
@@ -211,7 +213,7 @@ INCLUDE (CMakePackageConfigHelpers)
211213
IF (NOT (CMAKE_VERSION VERSION_LESS 3.14))
212214
SET (extra_version_file_args ARCH_INDEPENDENT)
213215
ENDIF ()
214-
SET (cmake_config_path "lib/cmake/msgpackc-cxx")
216+
SET (cmake_config_path "${CMAKE_INSTALL_LIBDIR}/cmake/msgpackc-cxx")
215217

216218
# Configure the main package file from source tree.
217219
CONFIGURE_PACKAGE_CONFIG_FILE (

0 commit comments

Comments
 (0)