From 2d44357366e7c8d0b1b2b5331a01f45bbfcfd6d0 Mon Sep 17 00:00:00 2001 From: Florian Reimold <11774314+FlorianReimold@users.noreply.github.com> Date: Fri, 26 Apr 2024 13:48:43 +0200 Subject: [PATCH] Ecaludp now installs an ecaludpConfigVersion.cmake file --- ecaludp/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ecaludp/CMakeLists.txt b/ecaludp/CMakeLists.txt index 6d07ffc..c6fc47a 100644 --- a/ecaludp/CMakeLists.txt +++ b/ecaludp/CMakeLists.txt @@ -246,8 +246,15 @@ configure_package_config_file( INSTALL_DESTINATION ${ECALUDP_INSTALL_CMAKE_DIR} PATH_VARS ECALUDP_INSTALL_CMAKE_DIR ) +write_basic_package_version_file( + "${CMAKE_CURRENT_BINARY_DIR}/cmake_/ecaludpConfigVersion.cmake" + VERSION ${PROJECT_VERSION} + COMPATIBILITY SameMajorVersion +) install( - FILES "${CMAKE_CURRENT_BINARY_DIR}/cmake_/ecaludpConfig.cmake" + FILES + "${CMAKE_CURRENT_BINARY_DIR}/cmake_/ecaludpConfig.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/cmake_/ecaludpConfigVersion.cmake" DESTINATION ${ECALUDP_INSTALL_CMAKE_DIR} COMPONENT ecaludp_dev ) \ No newline at end of file