mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-18 03:29:49 +02:00
Merge pull request #1003 from jamessan/config-installdir
Install version/config files under CMAKE_INSTALL_LIBDIR
This commit is contained in:
@@ -191,6 +191,8 @@ IF (MSGPACK_BUILD_DOCS)
|
|||||||
ENDIF ()
|
ENDIF ()
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
|
include (GNUInstallDirs)
|
||||||
|
|
||||||
# Install library.
|
# Install library.
|
||||||
INSTALL (TARGETS msgpackc-cxx
|
INSTALL (TARGETS msgpackc-cxx
|
||||||
EXPORT msgpackc-cxx-targets
|
EXPORT msgpackc-cxx-targets
|
||||||
@@ -211,7 +213,7 @@ INCLUDE (CMakePackageConfigHelpers)
|
|||||||
IF (NOT (CMAKE_VERSION VERSION_LESS 3.14))
|
IF (NOT (CMAKE_VERSION VERSION_LESS 3.14))
|
||||||
SET (extra_version_file_args ARCH_INDEPENDENT)
|
SET (extra_version_file_args ARCH_INDEPENDENT)
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
SET (cmake_config_path "lib/cmake/msgpackc-cxx")
|
SET (cmake_config_path "${CMAKE_INSTALL_LIBDIR}/cmake/msgpackc-cxx")
|
||||||
|
|
||||||
# Configure the main package file from source tree.
|
# Configure the main package file from source tree.
|
||||||
CONFIGURE_PACKAGE_CONFIG_FILE (
|
CONFIGURE_PACKAGE_CONFIG_FILE (
|
||||||
|
Reference in New Issue
Block a user