From 4490f9cb4117a6e85ff9eb4438f3542914615cb0 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Wed, 2 Oct 2024 22:50:06 +0200 Subject: [PATCH] Export cmake config into library directory because the target contains architecture dependent information (for example library path) its best to store it in an architecture dependent path --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6248b48c..642c38ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -184,13 +184,13 @@ install(FILES ${common_includes} install(EXPORT TracyConfig NAMESPACE Tracy:: FILE TracyTargets.cmake - DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Tracy) + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}) include(CMakePackageConfigHelpers) configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/TracyConfig.cmake" - INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Tracy) + INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/TracyConfig.cmake - DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Tracy) + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}) option(TRACY_CLIENT_PYTHON "Whether to build Tracy python client library" OFF)