summaryrefslogtreecommitdiffstats
path: root/Modules/FindHDF5.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-06 17:58:43 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-06 17:58:43 (GMT)
commitc1ba262a978be2f033d72434b0106a771755660f (patch)
tree5721c6e0453a38189869ffc805f925488462e88c /Modules/FindHDF5.cmake
parente1adec32b8325fb731da084e99acd6070f5e39bf (diff)
parentea2a8dd268a31ad2562d23f41df90f134811d52c (diff)
downloadCMake-c1ba262a978be2f033d72434b0106a771755660f.zip
CMake-c1ba262a978be2f033d72434b0106a771755660f.tar.gz
CMake-c1ba262a978be2f033d72434b0106a771755660f.tar.bz2
Merge branch 'FindHDF5-fix-definitions' into release
Diffstat (limited to 'Modules/FindHDF5.cmake')
-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}")