dae1684bd1
- Add cmake-hdf5-detection.patch to fix detection of hdf5 with cmake >= 3.6 (https://gitlab.kitware.com/cmake/cmake/issues/16225). OBS-URL: https://build.opensuse.org/request/show/417823 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=260
27 lines
854 B
Diff
27 lines
854 B
Diff
From 8eb0b56c2ace0f005cba436268337f509e06033f Mon Sep 17 00:00:00 2001
|
|
From: Chuck Atkins <chuck.atkins@kitware.com>
|
|
Date: Tue, 2 Aug 2016 10:34:51 -0400
|
|
Subject: [PATCH] FindHDF5: Make sure compile definition vars keep the -D flag
|
|
|
|
---
|
|
Modules/FindHDF5.cmake | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
|
|
index 50e1892..a898386 100644
|
|
--- a/Modules/FindHDF5.cmake
|
|
+++ b/Modules/FindHDF5.cmake
|
|
@@ -332,7 +332,7 @@ macro( _HDF5_parse_compile_line
|
|
set( RE " -D([^ ]*)")
|
|
string( REGEX MATCHALL "${RE}" definition_flags "${${compile_line_var}}" )
|
|
foreach( DEF IN LISTS definition_flags )
|
|
- string( REGEX REPLACE "${RE}" "\\1" DEF "${DEF}" )
|
|
+ string( STRIP "${DEF}" DEF )
|
|
list( APPEND ${definitions} ${DEF} )
|
|
endforeach()
|
|
|
|
--
|
|
libgit2 0.24.0
|
|
|
|
|