File: build-using-system-find-dot-cmake

package info (click to toggle)
libminc 2.4.06-2.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,268 kB
  • sloc: ansic: 57,309; cpp: 3,654; sh: 100; makefile: 23; ruby: 18
file content (27 lines) | stat: -rw-r--r-- 822 bytes parent folder | download | duplicates (2)
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
From: Steve Robbins <smr@debian.org>
Date: Thu, 1 Sep 2022 21:00:02 -0500
Subject: Build using system findpackage.cmake files

Last-Changed: Mon Aug 24 22:36:21 CDT 2015
Forwarded-Upstream: No

The sources contain an older copy of FindNETCDF.cmake.
We delete that in debian/rules to use the system-supplied
version, but also require this patch so that the newer
variable HDF5_C_LIBRARIES is used.
---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 708fc78..2d80291 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -82,6 +82,7 @@ IF(NOT LIBMINC_EXTERNALLY_CONFIGURED)
   ENDIF()
   
   SET(HAVE_ZLIB ON)
+  set(HDF5_LIBRARY ${HDF5_C_LIBRARIES})
 ELSE(NOT LIBMINC_EXTERNALLY_CONFIGURED)
   #TODO: set paths for HDF5 etc
 ENDIF(NOT LIBMINC_EXTERNALLY_CONFIGURED)