Package: toppic / 1.3.0+dfsg1-4

0004-Fix-the-erroneous-bin-install-directory.patch Patch series | 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
From: Filippo Rusconi <lopippo@debian.org>
Date: Tue, 26 May 2020 17:54:40 +0200
Subject: Fix the erroneous bin/ install directory.

The install directory was set to ${CMAKE_INSTALL_PREFIX}/usr/bin)
which made the programs installed into /usr/usr/bin if
${CMAKE_INSTALL_PREFIX} was set to /usr.
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc93f80..987ce91 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -281,7 +281,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 #        boost_filesystem boost_system boost_thread boost_iostreams boost_chrono pthread z)
 
 #file(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/usr/bin)
-install (TARGETS topfd toppic topmg topdiff DESTINATION ${CMAKE_INSTALL_PREFIX}/usr/bin/)
+install (TARGETS topfd toppic topmg topdiff DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
 install (DIRECTORY toppic_resources/ DESTINATION ${TOPPIC_DATA_DIR})
 
 ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")