File: 0001-CMakeLists-Use-GNUInstallDirs-module.patch

package info (click to toggle)
tidy-html5 2%3A5.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,668 kB
  • sloc: ansic: 43,061; ruby: 1,368; sh: 404; xml: 225; cpp: 30; makefile: 26
file content (48 lines) | stat: -rw-r--r-- 1,316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From: Boyuan Yang <byang@debian.org>
Date: Tue, 13 Jul 2021 15:18:24 -0400
Subject: CMakeLists: Use GNUInstallDirs module

---
 CMakeLists.txt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 699959e..c9cb081 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,7 @@
 # @date    Consult git log.
 ##############################################################################
 
-cmake_minimum_required (VERSION 2.8.12)
+cmake_minimum_required (VERSION 3.0.2)
 
 set(LIB_NAME tidy)
 set(LIBTIDY_DESCRIPTION "${LIB_NAME} - HTML syntax checker")
@@ -25,6 +25,7 @@ set(LIBTIDY_URL "http://www.html-tidy.org")
 
 project (${LIB_NAME})
 
+include(GNUInstallDirs)
 
 #################################################
 # Setup
@@ -381,15 +382,15 @@ set ( LIBHFILES
 # Target Locations
 #------------------------------------------------------------------------
 if (NOT LIB_INSTALL_DIR)
-    set(LIB_INSTALL_DIR lib${LIB_SUFFIX})
+    set(LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR})
 endif ()
 
 if (NOT BIN_INSTALL_DIR)
-    set(BIN_INSTALL_DIR bin)
+    set(BIN_INSTALL_DIR ${CMAKE_INSTALL_BINDIR})
 endif ()
 
 if (NOT INCLUDE_INSTALL_DIR)
-    set(INCLUDE_INSTALL_DIR include)
+    set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR})
 endif ()