From a3b57d278bad5926ff46ec35a05aaef7327a9d3a Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 14 Apr 2020 18:53:23 +0300 Subject: [PATCH] Fix for "#18972 [CEA][Windows] Cannot compile SMESH" --- cmake/FindSalomeHDF5.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/FindSalomeHDF5.cmake b/cmake/FindSalomeHDF5.cmake index a96ac2d..b668c6a 100644 --- a/cmake/FindSalomeHDF5.cmake +++ b/cmake/FindSalomeHDF5.cmake @@ -31,6 +31,9 @@ SET(HDF5_ROOT_DIR $ENV{HDF5_ROOT_DIR} CACHE PATH "Path to the HDF5.") IF(HDF5_ROOT_DIR) SET (HDF5_ROOT ${HDF5_ROOT_DIR}) + IF(WIN32) + SET(HDF5_DIR ${HDF5_ROOT_DIR}/cmake/hdf5) + ENDIF() ENDIF() SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(HDF5 HDF5_INCLUDE_DIR 1) -- 2.39.2