summaryrefslogtreecommitdiffstats
path: root/src/liblaxjson-1-fixes.patch
blob: f8d695885c3e5f87840627e10f5d8e3904ef1b32 (plain)
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
This file is part of MXE. See LICENSE.md for licensing information.

Contains ad hoc patches for cross building.

From e11d3cd0b909b21c97e6a0e3379d4ad42cc5c537 Mon Sep 17 00:00:00 2001
From: MXE
Date: Wed, 21 Oct 2015 20:51:02 +1100
Subject: [PATCH] add install components


diff --git a/CMakeLists.txt b/CMakeLists.txt
index f008f13..cf89967 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,5 +39,8 @@ 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" COMPONENT header DESTINATION include)
+install(TARGETS laxjson_static COMPONENT static-lib DESTINATION lib)
+install(TARGETS laxjson COMPONENT shared-lib
+        DESTINATION lib
+        RUNTIME DESTINATION bin)
-- 
2.3.8 (Apple Git-58)