From 260db3689dbeaa946c1af6e1790aac989bcff85b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yohann=20B=C3=A9n=C3=A9dic?= Date: Thu, 8 Feb 2024 16:09:59 +0100 Subject: [PATCH] chaing install targets so that io1-money is installed and not io1. --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a89360..deb32ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ include(GNUInstallDirs) add_library(${PROJECT_NAME} INTERFACE include/io1/money.hpp) target_include_directories( ${PROJECT_NAME} - INTERFACE $ + INTERFACE $ $) target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_20) @@ -39,16 +39,16 @@ write_basic_package_version_file( configure_package_config_file( "${PROJECT_SOURCE_DIR}/cmake/config.cmake.in" "${PROJECT_NAME}Config.cmake" - INSTALL_DESTINATION ${CMAKE_INSTALL_DATADIR}/io1/cmake) + INSTALL_DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake) install( EXPORT ${PROJECT_NAME} NAMESPACE io1:: - DESTINATION ${CMAKE_INSTALL_DATADIR}/io1/cmake) + DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake) install(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake" "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" - DESTINATION ${CMAKE_INSTALL_DATADIR}/io1/cmake) + DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake) if(IO1_WITH_TESTS) include(CTest) @@ -63,5 +63,5 @@ if(IO1_WITH_TESTS) NAME test_${PROJECT_NAME} COMMAND test_${PROJECT_NAME} --reporters=junit --out=junit_test_${PROJECT_NAME}.xml - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + WORKING_DIRECTORY ${PROJECT_BINARY_DIR}) endif()