summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2016-08-02 14:34:51 (GMT)
committerChuck Atkins <chuck.atkins@kitware.com>2016-08-02 14:34:51 (GMT)
commit8eb0b56c2ace0f005cba436268337f509e06033f (patch)
tree1c1f25f404fc0c1ab521beb1f0f4d77ed7bc84ea
parentf59513140bf086eda2029c5b4e950fc58216c06e (diff)
downloadCMake-8eb0b56c2ace0f005cba436268337f509e06033f.zip
CMake-8eb0b56c2ace0f005cba436268337f509e06033f.tar.gz
CMake-8eb0b56c2ace0f005cba436268337f509e06033f.tar.bz2
FindHDF5: Make sure compile definition vars keep the -D flag
-rw-r--r--Modules/FindHDF5.cmake2
1 files changed, 1 insertions, 1 deletions
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()