blob: 23deba22657a856759d843231ba023b601d98be8 (
plain)
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
|
Description: fix_xtrkcad_build_failure
Author: Yue Gui <yuemeng.gui@gmail.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087474
Forwarded: not-needed
Last-Update: 2024-11-14 <YYYY-MM-DD, last update of the meta-information, optional>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/CMake/FindLibzip.cmake
+++ b/CMake/FindLibzip.cmake
@@ -37,17 +37,23 @@
HINTS ${PC_LIBZIP_INCLUDE_DIRS})
if(UNIX AND NOT APPLE)
+ if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
find_library(LIBZIP_LIBRARY
NAMES libzip.a zip
PATHS
- /usr/lib64
- /usr/lib
- /usr/local/lib64
- /usr/local/lib
- /sw/lib
- /opt/local/lib
- ${CMAKE_CURRENT_SOURCE_DIR}/app/tools/lib/linux
- )
+ /usr/lib64
+ /usr/lib
+ /usr/local/lib64
+ /usr/local/lib
+ /sw/lib
+ /opt/local/lib
+ ${CMAKE_CURRENT_SOURCE_DIR}/app/tools/lib/linux
+ )
+ else()
+ find_library(LIBZIP_LIBRARY
+ NAMES zip
+ )
+ endif()
else()
find_library(LIBZIP_LIBRARY
NAMES zip)
|