LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cmake-hdf5-detection.patch of Package cmake (Project home:chaudhari:forked)

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