summaryrefslogtreecommitdiffstats
path: root/config/cmake/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'config/cmake/ConfigureChecks.cmake')
-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 cea7bf9..1275b65 100644
--- a/config/cmake/ConfigureChecks.cmake
+++ b/config/cmake/ConfigureChecks.cmake
@@ -510,9 +510,9 @@ MACRO (HDF5_FUNCTION_TEST OTHER_TEST)
H5_HAVE_SYS_TYPES_H
H5_HAVE_SYS_SOCKET_H
)
- IF ("${def}")
+ IF ("${H5_${def}}")
SET (MACRO_CHECK_FUNCTION_DEFINITIONS "${MACRO_CHECK_FUNCTION_DEFINITIONS} -D${def}")
- ENDIF ("${def}")
+ ENDIF ("${H5_${def}}")
ENDFOREACH (def)
IF (LARGEFILE)