From 48a8958785c412f08a32f2efd6ab57da92774308 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 7 May 2024 09:45:12 +0200
Subject: [PATCH] [cmake] Fixed a warning regarding search paths.

Python should be copied to lib-folder at install time, not at
configure time. file(INSTALL ..) is an alias to file(COPY ...) and
therefore a bit misleading, use install(FILE ...) instead!
---
 scripts/cmake/packaging/Pack.cmake | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/scripts/cmake/packaging/Pack.cmake b/scripts/cmake/packaging/Pack.cmake
index df2dfd61a62..11e827756ae 100644
--- a/scripts/cmake/packaging/Pack.cmake
+++ b/scripts/cmake/packaging/Pack.cmake
@@ -76,9 +76,7 @@ if(WIN32)
          DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
     )
 else()
-    file(INSTALL ${Python_LIBRARIES} DESTINATION ${CMAKE_INSTALL_LIBDIR}
-         FOLLOW_SYMLINK_CHAIN
-    )
+    install(FILES ${Python_LIBRARIES} DESTINATION ${CMAKE_INSTALL_LIBDIR})
 endif()
 
 configure_file(Documentation/README.txt.in ${PROJECT_BINARY_DIR}/README.txt)
-- 
GitLab