1
0
Эх сурвалжийг харах

Merge topic 'fix-findhdf5-definitions'

8eb0b56c FindHDF5: Make sure compile definition vars keep the -D flag
Brad King 9 жил өмнө
parent
commit
a382c3013c

+ 1 - 1
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()