summaryrefslogtreecommitdiffstats
path: root/chat-im/utox/patches/0001-Fix-utox-target-installation-rule.patch
blob: 20b56dde6d6a6072dce1a1bf67c1c8097b63e123 (plain) (blame)
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
From 01e97f0b9df9e6a1ad6a0a0320f7087c7b2a94e8 Mon Sep 17 00:00:00 2001
From: Ismael Luceno <ismael@iodev.co.uk>
Date: Sat, 26 Nov 2016 05:23:46 -0200
Subject: [PATCH] Fix utox target installation rule

CMake install rules for files generated by the build process must specify
they reference a target to be correctly looked up in the build directory,
instead of the source directory.

Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 98824775c76d..380fa684f219 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -144,9 +144,6 @@ elseif(UNIX) # xlib by default
     target_link_libraries(utoxNATIVE icon v4lconvert X11 Xext Xrender fontconfig freetype resolv dl )
 
 	install(FILES
-	  utox
-	  DESTINATION "bin")
-	install(FILES
 	  src/utox.desktop
 	  DESTINATION "share/applications")
 	install(FILES
@@ -270,3 +267,6 @@ target_link_libraries(utox
                       sodium        pthread     m   vpx )
 
 set_property(TARGET utox PROPERTY C_STANDARD 99)
+if(UNIX)
+	install(TARGETS utox RUNTIME DESTINATION "bin")
+endif()
-- 
2.10.2