File: build-fixes

package info (click to toggle)
mapcode 2.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,156 kB
  • sloc: ansic: 57,196; cpp: 626; sh: 246; makefile: 7
file content (27 lines) | stat: -rw-r--r-- 949 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
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: not-needed

--- a/CMakeLists.txt
+++ b/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)
+install(TARGETS mapcode DESTINATION /usr/bin)