diff options
author | Brad King <brad.king@kitware.com> | 2016-08-02 14:54:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-08-02 14:54:03 (GMT) |
commit | 88f4b4c9e03fae6cda2160b5f96b23ce42ce0b78 (patch) | |
tree | 52b31499b63d66976a2c1c262a88eafb6953ffae /Modules | |
parent | 3c57905dcf9a458d403f25b451bab5f525c3ac61 (diff) | |
parent | 8eb0b56c2ace0f005cba436268337f509e06033f (diff) | |
download | CMake-88f4b4c9e03fae6cda2160b5f96b23ce42ce0b78.zip CMake-88f4b4c9e03fae6cda2160b5f96b23ce42ce0b78.tar.gz CMake-88f4b4c9e03fae6cda2160b5f96b23ce42ce0b78.tar.bz2 |
Merge branch 'fix-findhdf5-definitions' into release
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindHDF5.cmake | 2 |
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() |