Commit 6573405d authored by Daniel Wortmann's avatar Daniel Wortmann

Bugfix in test for presence of HDF5 library, should fix #174

parent 1c9c79cd
......@@ -12,7 +12,7 @@ foreach(ADD_String "-lhdf5_fortran;-lhdf5"
"-lhdf5_fortran;-lhdf5;-ldl;-lz"
"-lhdf5_fortran;-lhdf5_f90cstub;-lhdf5;-ldl;-lz")
if (NOT FLEUR_USE_HDF5)
set(TEST_LIBRARIES "${FLEUR_LIBRARIES};-lhdf5_fortran;-lhdf5")
set(TEST_LIBRARIES "${FLEUR_LIBRARIES};${ADD_String}")
try_compile(FLEUR_USE_HDF5 ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_HDF5.f90
LINK_LIBRARIES ${TEST_LIBRARIES}
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment