diff options
author | Julien Schueller <schueller@phimeca.com> | 2023-04-11 19:28:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 19:28:32 (GMT) |
commit | 70d9616672161eb577bbc5d9763af1414db862e2 (patch) | |
tree | 7c5157abae2db39eb72ccbbe843d12dc621c2c66 /config/cmake/ConfigureChecks.cmake | |
parent | 3bca79c7aa9a03264b9aa370286a1dfaaf4172e1 (diff) | |
download | hdf5-70d9616672161eb577bbc5d9763af1414db862e2.zip hdf5-70d9616672161eb577bbc5d9763af1414db862e2.tar.gz hdf5-70d9616672161eb577bbc5d9763af1414db862e2.tar.bz2 |
CMake: Let runtime checks through stdout only (#2666)
This avoids mixing emulators errors on stderr to configure results
while cross-compiling with wine.
Diffstat (limited to 'config/cmake/ConfigureChecks.cmake')
-rw-r--r-- | config/cmake/ConfigureChecks.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake index b535396..47c2438 100644 --- a/config/cmake/ConfigureChecks.cmake +++ b/config/cmake/ConfigureChecks.cmake @@ -780,12 +780,17 @@ if (HDF5_BUILD_FORTRAN) ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCCompiler1.c ${SOURCE_CODE} ) + if (CMAKE_VERSION VERSION_LESS 3.25) + set (_RUN_OUTPUT_VARIABLE "RUN_OUTPUT_VARIABLE") + else () + set (_RUN_OUTPUT_VARIABLE "RUN_OUTPUT_STDOUT_VARIABLE") + endif() TRY_RUN (RUN_RESULT_VAR COMPILE_RESULT_VAR ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCCompiler1.c COMPILE_DEFINITIONS "-D_SIZEOF___FLOAT128=${H5_SIZEOF___FLOAT128};-D_HAVE_QUADMATH_H=${H5_HAVE_QUADMATH_H}" COMPILE_OUTPUT_VARIABLE COMPILEOUT - RUN_OUTPUT_VARIABLE OUTPUT_VAR + ${_RUN_OUTPUT_VARIABLE} OUTPUT_VAR ) set (${RETURN_OUTPUT_VAR} ${OUTPUT_VAR}) |