Fix for bug 11752, mixed debug and release libraries.
This commit is contained in:
parent
4e12284424
commit
0584701ae4
|
@ -324,9 +324,13 @@ if( NOT HDF5_FOUND )
|
||||||
# Construct the complete list of HDF5 libraries with debug and optimized
|
# Construct the complete list of HDF5 libraries with debug and optimized
|
||||||
# variants when the generator supports them.
|
# variants when the generator supports them.
|
||||||
if( CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE )
|
if( CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE )
|
||||||
set( HDF5_LIBRARIES
|
set( HDF5_LIBRARIES )
|
||||||
debug ${HDF5_LIBRARIES_DEBUG}
|
foreach( _lib ${HDF5_LIBRARIES_DEBUG} )
|
||||||
optimized ${HDF5_LIBRARIES_RELEASE} )
|
list( APPEND HDF5_LIBRARIES debug ${_lib} )
|
||||||
|
endforeach()
|
||||||
|
foreach( _lib ${HDF5_LIBRARIES_RELEASE} )
|
||||||
|
list( APPEND HDF5_LIBRARIES optimized ${_lib} )
|
||||||
|
endforeach()
|
||||||
else()
|
else()
|
||||||
set( HDF5_LIBRARIES ${HDF5_LIBRARIES_RELEASE} )
|
set( HDF5_LIBRARIES ${HDF5_LIBRARIES_RELEASE} )
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue