summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-03 13:20:19 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-08-03 13:20:19 (GMT)
commita382c3013c7b98a95c6d4ceb833721093a5c9ff3 (patch)
tree3696922e997665f6f5b86dfb93fe2b99e9039dad /Modules
parent33fe4751e8ccc1ad5342cb16a192cb3a69479845 (diff)
parent8eb0b56c2ace0f005cba436268337f509e06033f (diff)
downloadCMake-a382c3013c7b98a95c6d4ceb833721093a5c9ff3.zip
CMake-a382c3013c7b98a95c6d4ceb833721093a5c9ff3.tar.gz
CMake-a382c3013c7b98a95c6d4ceb833721093a5c9ff3.tar.bz2
Merge topic 'fix-findhdf5-definitions'
8eb0b56c FindHDF5: Make sure compile definition vars keep the -D flag
Diffstat (limited to 'Modules')
-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()