This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 84586d48bc CMAKE_INSTALL_FULL_LOGDIR and CMAKE_INSTALL_FULL_CACHEDIR 
(#10983)
84586d48bc is described below

commit 84586d48bc88eb18a31dca196708537fbdbf4b42
Author: Brian Neradt <[email protected]>
AuthorDate: Mon Jan 22 17:36:42 2024 -0600

    CMAKE_INSTALL_FULL_LOGDIR and CMAKE_INSTALL_FULL_CACHEDIR (#10983)
    
    We use the FULL versions of CMAKE_INSTALL_LOGDIR and
    CMAKE_INSTALL_CACHEDIR, but GNUInstallDirs doens't know about these
    since they are custom for us and therefore doesn't automatically create
    them. This explicitly sets the values of these.
---
 cmake/layout.cmake | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/cmake/layout.cmake b/cmake/layout.cmake
index c01c5ec8f7..69a7b23970 100644
--- a/cmake/layout.cmake
+++ b/cmake/layout.cmake
@@ -62,8 +62,20 @@ set(CMAKE_INSTALL_LOGDIR
     "${CMAKE_INSTALL_LOCALSTATEDIR}/log/trafficserver"
     CACHE STRING "logdir"
 )
+# Since CMAKE_INSTALL_LOGDIR is custom, GNUInstallDirs doesn't know to creat a
+# FULL version of it automatically for us.
+set(CMAKE_INSTALL_FULL_LOGDIR
+    "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LOGDIR}"
+    CACHE STRING "full logdir"
+)
 set(CMAKE_INSTALL_CACHEDIR
     "${CMAKE_INSTALL_LOCALSTATEDIR}/trafficserver"
     CACHE STRING "cachedir"
 )
+# Since CMAKE_INSTALL_CACHEDIR is custom, GNUInstallDirs doesn't know to creat 
a
+# FULL version of it automatically for us.
+set(CMAKE_INSTALL_FULL_CACHEDIR
+    "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_CACHEDIR}"
+    CACHE STRING "full cachedir"
+)
 include(GNUInstallDirs)

Reply via email to