diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-07-21 16:12:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 16:12:39 (GMT) |
commit | 20dd1cedb35d95ecc21decb29352d7779d49a908 (patch) | |
tree | f05c9fbe3548ce094941ee22b071ed8bd3b43da2 /config/cmake | |
parent | 50a37fde06457ee5e75ea65259c233cb6527bd91 (diff) | |
download | hdf5-20dd1cedb35d95ecc21decb29352d7779d49a908.zip hdf5-20dd1cedb35d95ecc21decb29352d7779d49a908.tar.gz hdf5-20dd1cedb35d95ecc21decb29352d7779d49a908.tar.bz2 |
Issue #833 fix setting return result (#843)
Diffstat (limited to 'config/cmake')
-rw-r--r-- | config/cmake/ConfigureChecks.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake index 7baf77b..4db3ad4 100644 --- a/config/cmake/ConfigureChecks.cmake +++ b/config/cmake/ConfigureChecks.cmake @@ -261,7 +261,7 @@ macro (C_RUN FUNCTION_NAME SOURCE_CODE RETURN_VAR) if (${COMPILE_RESULT_VAR}) if (${RUN_RESULT_VAR} MATCHES 0) - set (${RUN_RESULT_VAR} 1 CACHE INTERNAL "Have C function ${FUNCTION_NAME}") + set (${RETURN_VAR} 1 CACHE INTERNAL "Have C function ${FUNCTION_NAME}") if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") message (VERBOSE "Testing C ${FUNCTION_NAME} - OK") endif () @@ -273,7 +273,7 @@ macro (C_RUN FUNCTION_NAME SOURCE_CODE RETURN_VAR) if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") message (VERBOSE "Testing C ${FUNCTION_NAME} - Fail") endif () - set (${RUN_RESULT_VAR} 0 CACHE INTERNAL "Have C function ${FUNCTION_NAME}") + set (${RETURN_VAR} 0 CACHE INTERNAL "Have C function ${FUNCTION_NAME}") file (APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "Determining if the C ${FUNCTION_NAME} exists failed with the following output:\n" "${OUTPUT_VAR}\n\n") |