summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-11-30 19:39:56 (GMT)
committerGitHub <noreply@github.com>2021-11-30 19:39:56 (GMT)
commit5fddfb801644c13b01546930d7817a56a34e16c0 (patch)
tree2fce52ebdf18f8da52b1b55962889d2879184773
parent89ad105b1c0f2a1876750e5795c1d994b142dd64 (diff)
downloadhdf5-5fddfb801644c13b01546930d7817a56a34e16c0.zip
hdf5-5fddfb801644c13b01546930d7817a56a34e16c0.tar.gz
hdf5-5fddfb801644c13b01546930d7817a56a34e16c0.tar.bz2
Fix windows test with floating point rounding issues (#1237)
* Check windows sdk version for test * Correct variable reference form * Use VERSION_LESS in IF check
-rw-r--r--tools/test/h5dump/CMakeTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/h5dump/CMakeTests.cmake b/tools/test/h5dump/CMakeTests.cmake
index a8984de..c0f279d 100644
--- a/tools/test/h5dump/CMakeTests.cmake
+++ b/tools/test/h5dump/CMakeTests.cmake
@@ -412,7 +412,7 @@
# --------------------------------------------------------------------
HDFTEST_COPY_FILE("${HDF5_TOOLS_DIR}/testfiles/tbin1.ddl" "${PROJECT_BINARY_DIR}/testfiles/std/tbin1LE.ddl" "h5dump_std_files")
- if (WIN32)
+ if (WIN32 AND CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION VERSION_LESS 10.0.18362.0)
configure_file(${HDF5_TOOLS_DIR}/testfiles/tbinregR.exp ${PROJECT_BINARY_DIR}/testfiles/std/tbinregR.exp NEWLINE_STYLE CRLF)
#file (READ ${HDF5_TOOLS_DIR}/testfiles/tbinregR.exp TEST_STREAM)
#file (WRITE ${PROJECT_BINARY_DIR}/testfiles/std/tbinregR.exp "${TEST_STREAM}")