diff options
author | Brad King <brad.king@kitware.com> | 2017-03-06 17:56:48 +0000 |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-03-06 12:56:51 -0500 |
commit | add3b1ee4f798fe667b53a521eb18a623e64f0e0 (patch) | |
tree | 78325ab4c8157811ccd35f1ac33d653ab5727e35 /Modules/FindHDF5.cmake | |
parent | a55ed1a37c74a7a112e6c355af0658b5d89dede1 (diff) | |
parent | ea2a8dd268a31ad2562d23f41df90f134811d52c (diff) | |
download | cmake-add3b1ee4f798fe667b53a521eb18a623e64f0e0.tar.gz |
Merge topic 'FindHDF5-fix-definitions'
ea2a8dd2 FindHDF5: Restore `-D` in HDF5_DEFINITIONS
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !554
Diffstat (limited to 'Modules/FindHDF5.cmake')
-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 927ec6478a..5e1b520e42 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -358,7 +358,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}") |