summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-07-27 20:15:57 (GMT)
committerGitHub <noreply@github.com>2021-07-27 20:15:57 (GMT)
commit443179ce6a48cfbe7693779d3de1c4990882b43a (patch)
treed02178ffe77d0b788d209dd24bd46bb1ec54cca5 /config
parent582218fdd9c40ec1efca7bd7cbad2106cbd1a3c5 (diff)
downloadhdf5-443179ce6a48cfbe7693779d3de1c4990882b43a.zip
hdf5-443179ce6a48cfbe7693779d3de1c4990882b43a.tar.gz
hdf5-443179ce6a48cfbe7693779d3de1c4990882b43a.tar.bz2
Issue #833 fix setting return result (#857)
Diffstat (limited to 'config')
-rw-r--r--config/cmake/ConfigureChecks.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake
index 87b2006..b877b78 100644
--- a/config/cmake/ConfigureChecks.cmake
+++ b/config/cmake/ConfigureChecks.cmake
@@ -263,7 +263,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 ()
@@ -275,7 +275,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")