Commit b6938dfb authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Fix hdf5 issues when using nmake or ninja.

The problem was that hdf5 cmake is misconfigured to not detect its running MSVC
when nmake or ninja files are used. Overcoming that with a patch. This solves a
linker error we got with missing definition for gettimeofday.
parent ae5ce49d
DEPENDS zlib szip
......@@ -8,3 +9,15 @@ add_external_project(
if (MSVC)
# hdf5 has a bug with MSVC compiler where it doesn't realize its using MSVC
# compiler when using nmake or ninja generators. This patch fixes that.
COMMAND ${CMAKE_COMMAND} -E copy_if_different
DEPENDEES update # do after update
DEPENDERS patch # do before patch
This diff is collapsed.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment