Florian Festi 3913b4
From 33702961f45567a599bc0f0dac055604dc204fb1 Mon Sep 17 00:00:00 2001
Florian Festi 3913b4
From: Florian Festi <ffesti@redhat.com>
Florian Festi 3913b4
Date: Tue, 2 May 2023 09:03:50 +0200
Florian Festi 3913b4
Subject: [PATCH] Remove second share/ dir from infodir and mandir
Florian Festi 3913b4
Florian Festi 3913b4
cmake variables and the derived macros.
Florian Festi 3913b4
Florian Festi 3913b4
CMAKE_INSTALL_INFODIR and  CMAKE_INSTALL_MANDIR already include the
Florian Festi 3913b4
datarootdir. So just prepending the prefix is sufficient.
Florian Festi 3913b4
---
Florian Festi 3913b4
 CMakeLists.txt | 4 ++--
Florian Festi 3913b4
 1 file changed, 2 insertions(+), 2 deletions(-)
Florian Festi 3913b4
Florian Festi 3913b4
diff --git a/CMakeLists.txt b/CMakeLists.txt
Florian Festi 3913b4
index 230d18d1f..9718505bf 100644
Florian Festi 3913b4
--- a/CMakeLists.txt
Florian Festi 3913b4
+++ b/CMakeLists.txt
Florian Festi 3913b4
@@ -67,8 +67,8 @@ function(makemacros)
Florian Festi 3913b4
 	set(libdir "\${prefix}/=LIB=")
Florian Festi 3913b4
 	set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
Florian Festi 3913b4
 	set(oldincludedir "${CMAKE_INSTALL_FULL_OLDINCLUDEDIR}")
Florian Festi 3913b4
-	set(infodir "\${datarootdir}/${CMAKE_INSTALL_INFODIR}")
Florian Festi 3913b4
-	set(mandir "\${datarootdir}/${CMAKE_INSTALL_MANDIR}")
Florian Festi 3913b4
+	set(infodir "\${prefix}/${CMAKE_INSTALL_INFODIR}")
Florian Festi 3913b4
+	set(mandir "\${prefix}/${CMAKE_INSTALL_MANDIR}")
Florian Festi 3913b4
 	set(RUNDIR /run)
Florian Festi 3913b4
 
Florian Festi 3913b4
 	set(acutils
Florian Festi 3913b4
-- 
Florian Festi 3913b4
2.40.1
Florian Festi 3913b4