From 87c75b9793cc30fcd4320556b1f16a46f43a3cc7 Mon Sep 17 00:00:00 2001 From: Florian Reimold <11774314+FlorianReimold@users.noreply.github.com> Date: Fri, 26 Apr 2024 13:51:45 +0200 Subject: [PATCH] fineftp now installs a fineftpConfigVersion.cmake file --- fineftp-server/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fineftp-server/CMakeLists.txt b/fineftp-server/CMakeLists.txt index d9fce0a..bfcae3e 100644 --- a/fineftp-server/CMakeLists.txt +++ b/fineftp-server/CMakeLists.txt @@ -182,8 +182,15 @@ configure_package_config_file( INSTALL_DESTINATION ${FINEFTP_INSTALL_CMAKE_DIR} PATH_VARS FINEFTP_INSTALL_CMAKE_DIR ) +write_basic_package_version_file( + "${CMAKE_CURRENT_BINARY_DIR}/cmake_/fineftpConfigVersion.cmake" + VERSION ${PROJECT_VERSION} + COMPATIBILITY SameMajorVersion +) install( - FILES "${CMAKE_CURRENT_BINARY_DIR}/cmake_/fineftpConfig.cmake" + FILES + "${CMAKE_CURRENT_BINARY_DIR}/cmake_/fineftpConfig.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/cmake_/fineftpConfigVersion.cmake" DESTINATION ${FINEFTP_INSTALL_CMAKE_DIR} COMPONENT fineftp_server_dev )