File: build-fixes

package info (click to toggle)
mapcode 2.5.5-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,136 kB
  • sloc: ansic: 56,909; cpp: 607; sh: 236; makefile: 7
file content (29 lines) | stat: -rw-r--r-- 1,010 bytes parent folder | download | duplicates (5)
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
Description: Fix build infra
 Link some libs and install targets.
 Also add -fsigned-char as work-around for test fails (#843084)
Author: Stefan Fritsch <sf@debian.org>
Origin: vendor
Forwarded: no
Last-Update: 2016-11-02

--- mapcode.orig/CMakeLists.txt
+++ mapcode/CMakeLists.txt
@@ -95,6 +95,11 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
 find_package(Threads REQUIRED)
 find_library(M_LIB m)
 
+set(THREADS_PREFER_PTHREAD_FLAG ON)
+find_package(Threads REQUIRED)
+find_library(M_LIB m)
+add_compile_options("-fsigned-char")
+
 add_library(mapcodelib ${SOURCE_FILES_MAPCODELIB})
 target_include_directories(mapcodelib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
 target_link_libraries(mapcodelib Threads::Threads)
@@ -110,4 +115,4 @@ target_link_libraries(mapcode LINK_PUBLI
 target_link_libraries(mapcode LINK_PUBLIC Threads::Threads)
 target_link_libraries(mapcode LINK_PUBLIC ${M_LIB})
 
-install(TARGETS mapcode DESTINATION /usr/local/bin)
\ No newline at end of file
+install(TARGETS mapcode DESTINATION /usr/bin)