summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKris Thielemans <k.thielemans@ucl.ac.uk>2017-03-04 04:19:01 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-06 17:48:49 (GMT)
commitea2a8dd268a31ad2562d23f41df90f134811d52c (patch)
tree5721c6e0453a38189869ffc805f925488462e88c
parente1adec32b8325fb731da084e99acd6070f5e39bf (diff)
downloadCMake-ea2a8dd268a31ad2562d23f41df90f134811d52c.zip
CMake-ea2a8dd268a31ad2562d23f41df90f134811d52c.tar.gz
CMake-ea2a8dd268a31ad2562d23f41df90f134811d52c.tar.bz2
FindHDF5: Restore `-D` in HDF5_DEFINITIONS
Changes in commit v3.8.0-rc1~7^2~5 (FindHDF5: Fix command-line parsing argument extraction order, 2017-02-02) accidentally dropped `-D` from preprocessor definition flags extracted from the HDF5 compiler wrappers. Fixes: #16693
-rw-r--r--Modules/FindHDF5.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 65a825d..36cd335 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -352,7 +352,7 @@ macro( _HDF5_parse_compile_line
list(APPEND ${include_paths} "${CMAKE_MATCH_1}")
elseif("${arg}" MATCHES "^-D(.*)$")
# compile definition
- list(APPEND ${definitions} "${CMAKE_MATCH_1}")
+ list(APPEND ${definitions} "-D${CMAKE_MATCH_1}")
elseif("${arg}" MATCHES "^-L(.*)$")
# library search path
list(APPEND ${library_paths} "${CMAKE_MATCH_1}")