From bec36b4b3c5bbc8fd82d7b5a26024d96e853f625 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Mon, 23 Dec 2024 09:30:39 +0800 Subject: [PATCH] fix: fix install path in CMake script. - replace some CMake variables to our custom variables in install path, however it does nothing because they are equal in default. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d350fa4..bbdab37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ write_basic_package_version_file( configure_package_config_file( ${CMAKE_CURRENT_LIST_DIR}/cmake/YYCCommonplaceConfig.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/YYCCommonplaceConfig.cmake" - INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/YYCCommonplace + INSTALL_DESTINATION ${YYCC_INSTALL_LIB_PATH}/cmake/YYCCommonplace ) # Copy package files to install destination install( @@ -54,6 +54,6 @@ FILES "${CMAKE_CURRENT_BINARY_DIR}/YYCCommonplaceConfig.cmake" "${CMAKE_CURRENT_BINARY_DIR}/YYCCommonplaceConfigVersion.cmake" DESTINATION - ${CMAKE_INSTALL_LIBDIR}/cmake/YYCCommonplace + ${YYCC_INSTALL_LIB_PATH}/cmake/YYCCommonplace )