diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-01-30 22:30:17 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-01-30 22:30:17 (GMT) |
commit | 16e649fa0deddf415bbfd900e868092e384db8a0 (patch) | |
tree | ff4e0d85066faa94d0492a1ff2051b2a0215366c /config/cmake/ConfigureChecks.cmake | |
parent | edb6fd0cf9170b0cd10ca47a858912022ac44c34 (diff) | |
download | hdf5-16e649fa0deddf415bbfd900e868092e384db8a0.zip hdf5-16e649fa0deddf415bbfd900e868092e384db8a0.tar.gz hdf5-16e649fa0deddf415bbfd900e868092e384db8a0.tar.bz2 |
HDFFV-10398 merge from develop improve CMake code
Diffstat (limited to 'config/cmake/ConfigureChecks.cmake')
-rw-r--r-- | config/cmake/ConfigureChecks.cmake | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake index 0848e66..7d73c09 100644 --- a/config/cmake/ConfigureChecks.cmake +++ b/config/cmake/ConfigureChecks.cmake @@ -179,7 +179,7 @@ endif () # Macro to determine the various conversion capabilities #----------------------------------------------------------------------------- macro (H5ConversionTests TEST msg) - if ("${TEST}" MATCHES "^${TEST}$") + if (NOT DEFINED ${TEST}) # message (STATUS "===> ${TEST}") TRY_RUN (${TEST}_RUN ${TEST}_COMPILE ${CMAKE_BINARY_DIR} @@ -210,21 +210,6 @@ macro (H5ConversionTests TEST msg) endmacro () #----------------------------------------------------------------------------- -# Macro to make some of the conversion tests easier to write/read -#----------------------------------------------------------------------------- -macro (H5MiscConversionTest VAR TEST msg) - if ("${TEST}" MATCHES "^${TEST}$") - if (${VAR}) - set (${TEST} 1 CACHE INTERNAL ${msg}) - message (STATUS "${msg}... yes") - else () - set (${TEST} "" CACHE INTERNAL ${msg}) - message (STATUS "${msg}... no") - endif () - endif () -endmacro () - -#----------------------------------------------------------------------------- # Check various conversion capabilities #----------------------------------------------------------------------------- |