We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b350a00 + b4d800e commit 34e4114Copy full SHA for 34e4114
CMakeLists.txt
@@ -191,6 +191,8 @@ IF (MSGPACK_BUILD_DOCS)
191
ENDIF ()
192
193
194
+include (GNUInstallDirs)
195
+
196
# Install library.
197
INSTALL (TARGETS msgpackc-cxx
198
EXPORT msgpackc-cxx-targets
@@ -211,7 +213,7 @@ INCLUDE (CMakePackageConfigHelpers)
211
213
IF (NOT (CMAKE_VERSION VERSION_LESS 3.14))
212
214
SET (extra_version_file_args ARCH_INDEPENDENT)
215
-SET (cmake_config_path "lib/cmake/msgpackc-cxx")
216
+SET (cmake_config_path "${CMAKE_INSTALL_LIBDIR}/cmake/msgpackc-cxx")
217
218
# Configure the main package file from source tree.
219
CONFIGURE_PACKAGE_CONFIG_FILE (
0 commit comments