File: gnu-install-dirs.patch

package info (click to toggle)
liblaxjson 1.0.5-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 172 kB
  • sloc: ansic: 1,202; makefile: 9
file content (32 lines) | stat: -rw-r--r-- 1,018 bytes parent folder | download | duplicates (3)
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
From: Andrew Kelley <superjoe30@gmail.com>
Date: Thu, 24 Jul 2014 06:45:56 +0000
Subject: Use GNUInstallDirs to determine install locations

Origin: vendor
Forwarded: not-needed
Last-Update: 2014-07-23

GNUInstallDirs is available as of cmake 2.8.5.
---
 CMakeLists.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f008f13..55eaf31 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,6 @@
 cmake_minimum_required(VERSION 2.8)
 project(laxjson C)
+include(GNUInstallDirs)
 
 set(VERSION_MAJOR 1)
 set(VERSION_MINOR 0)
@@ -39,5 +40,5 @@ set_target_properties(primitives_test PROPERTIES
 target_link_libraries(primitives_test laxjson)
 add_test(DetectPrimitives primitives_test)
 
-install(FILES "include/laxjson.h" DESTINATION include)
-install(TARGETS laxjson laxjson_static DESTINATION lib)
+install(FILES "include/laxjson.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+install(TARGETS laxjson laxjson_static DESTINATION ${CMAKE_INSTALL_LIBDIR})