--- CMakeLists.txt.orig 2023-08-10 19:27:56 UTC +++ CMakeLists.txt @@ -139,11 +139,11 @@ set_target_properties(yaml-cpp PROPERTIES set_target_properties(yaml-cpp PROPERTIES VERSION "${PROJECT_VERSION}" - SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}" + SOVERSION "${PROJECT_VERSION_MAJOR}" PROJECT_LABEL "yaml-cpp ${yaml-cpp-label-postfix}" DEBUG_POSTFIX "${CMAKE_DEBUG_POSTFIX}") -set(CONFIG_EXPORT_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/yaml-cpp") +set(CONFIG_EXPORT_DIR "lib/cmake/yaml-cpp") set(EXPORT_TARGETS yaml-cpp) configure_package_config_file( "${PROJECT_SOURCE_DIR}/yaml-cpp-config.cmake.in" @@ -175,7 +175,7 @@ if (YAML_CPP_INSTALL) "${PROJECT_BINARY_DIR}/yaml-cpp-config-version.cmake" DESTINATION "${CONFIG_EXPORT_DIR}") install(FILES "${PROJECT_BINARY_DIR}/yaml-cpp.pc" - DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + DESTINATION libdata/pkgconfig) endif() unset(CONFIG_EXPORT_DIR)