summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Festi <ffesti@redhat.com>2023-05-02 09:03:50 +0200
committerPanu Matilainen <pmatilai@redhat.com>2023-05-02 12:55:04 +0300
commit07d57462614b1669de1d63661f58fd9fa322411b (patch)
tree6cfd99603085af1c3d09e9f7dd64e2ae53ea3b46
parent14aac7d27ea79feeae37106d2d3a570adecc50e9 (diff)
downloadrpm-07d57462614b1669de1d63661f58fd9fa322411b.tar.gz
Remove second share/ dir from infodir and mandir
cmake variables and the derived macros. CMAKE_INSTALL_INFODIR and CMAKE_INSTALL_MANDIR already include the datarootdir. So just prepending the prefix is sufficient.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 230d18d1f..9718505bf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,8 +67,8 @@ function(makemacros)
set(libdir "\${prefix}/=LIB=")
set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
set(oldincludedir "${CMAKE_INSTALL_FULL_OLDINCLUDEDIR}")
- set(infodir "\${datarootdir}/${CMAKE_INSTALL_INFODIR}")
- set(mandir "\${datarootdir}/${CMAKE_INSTALL_MANDIR}")
+ set(infodir "\${prefix}/${CMAKE_INSTALL_INFODIR}")
+ set(mandir "\${prefix}/${CMAKE_INSTALL_MANDIR}")
set(RUNDIR /run)
set(acutils