File: 0001-debian-paths.patch

package info (click to toggle)
bornagain 1.19.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 91,912 kB
  • sloc: cpp: 518,586; python: 42,512; xml: 805; awk: 630; sh: 470; ansic: 37; makefile: 25
file content (46 lines) | stat: -rw-r--r-- 1,902 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
From: =?utf-8?q?Mika_Pfl=C3=BCger?= <mika@mikapflueger.de>
Date: Tue, 22 Nov 2016 12:10:03 +0100
Subject: debian paths

---
 GUI/main/CMakeLists.txt | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/GUI/main/CMakeLists.txt b/GUI/main/CMakeLists.txt
index 0e3b828..d1137ce 100644
--- a/GUI/main/CMakeLists.txt
+++ b/GUI/main/CMakeLists.txt
@@ -1,7 +1,7 @@
 ###############################################################################
 # Builds BornAgain/GUI main executable
 ###############################################################################
-set(executable_name BornAgain)
+set(executable_name bornagain)
 
 set(source_files main.cpp appoptions.cpp MessageHandler.cpp)
 set(include_files appoptions.h MessageHandler.h )
@@ -81,7 +81,7 @@ if(BORNAGAIN_APPLE_BUNDLE)
 elseif(WIN32)
     set(executable_destination DESTINATION ${destination_gui})
 else()
-    set(executable_destination DESTINATION ${destination_gui}/exec)
+    set(executable_destination DESTINATION "${destination_gui}")
 endif()
 #message(STATUS "Executable destination is ${executable_destination}")
 install (TARGETS ${executable_name} ${executable_destination} COMPONENT Applications)
@@ -108,10 +108,10 @@ if(UNIX)
     elseif(WIN32)
     elseif(NOT BUILD_DEBIAN)
         # creating link to BornAgain gui in bin directory
-        install(CODE "
-        execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink
-        \"../${destination_libexec}/exec/BornAgain\" \"bornagain\"
-        WORKING_DIRECTORY \"${CMAKE_INSTALL_PREFIX}/${destination_bin}\")
-        " COMPONENT Runtime)
+        #install(CODE "
+        #execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink
+        #\"../${destination_libexec}/exec/BornAgain\" \"bornagain\"
+        #WORKING_DIRECTORY \"${CMAKE_INSTALL_PREFIX}/${destination_bin}\")
+        #" COMPONENT Runtime)
     endif()
 endif()