mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
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
This commit is contained in:
committed by
Brad King
parent
e1adec32b8
commit
ea2a8dd268
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user