mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-05 15:42:32 +08:00
Just print status on CMake below 3.14 (#3595)
* Revert incorrect change
This commit is contained in:
parent
d47f41ea13
commit
e0c5376f99
@ -59,7 +59,7 @@ if (TEST_STRINGS STREQUAL "YES")
|
||||
endif ()
|
||||
else ()
|
||||
if (CMAKE_VERSION VERSION_LESS "3.14.0")
|
||||
message (FATAL_ERROR "CANNOT get file size, file command SIZE not supported")
|
||||
message (STATUS "CANNOT get file size, file command SIZE not supported")
|
||||
else ()
|
||||
file (SIZE ${TEST_FOLDER}/${TEST_ONEFILE} TEST_ONE_SIZE)
|
||||
file (SIZE ${TEST_FOLDER}/${TEST_TWOFILE} TEST_TWO_SIZE)
|
||||
@ -74,7 +74,7 @@ else ()
|
||||
elseif (TEST_FUNCTION MATCHES "LTEQ")
|
||||
if (TEST_ONE_SIZE LESS_EQUAL TEST_TWO_SIZE)
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0")
|
||||
message (VERBOSES "Passed: The size of ${TEST_FOLDER}/${TEST_ONEFILE} was less or equal ${TEST_FOLDER}/${TEST_TWOFILE}")
|
||||
message (VERBOSE "Passed: The size of ${TEST_FOLDER}/${TEST_ONEFILE} was less or equal ${TEST_FOLDER}/${TEST_TWOFILE}")
|
||||
endif ()
|
||||
else ()
|
||||
message (FATAL_ERROR "The size of ${TEST_FOLDER}/${TEST_ONEFILE} was NOT less or equal ${TEST_FOLDER}/${TEST_TWOFILE}")
|
||||
|
Loading…
Reference in New Issue
Block a user