FindHDF5: Record compiler wrapper checks to configure log
This commit is contained in:
parent
72915b1068
commit
ee075a53c8
@ -356,9 +356,13 @@ function( _HDF5_invoke_compiler language output_var return_value_var version_var
|
||||
ERROR_VARIABLE output
|
||||
RESULT_VARIABLE return_value
|
||||
)
|
||||
if(return_value AND NOT HDF5_FIND_QUIETLY)
|
||||
message(STATUS
|
||||
"HDF5 ${language} compiler wrapper is unable to compile a minimal HDF5 program.")
|
||||
if(NOT return_value EQUAL 0)
|
||||
message(CONFIGURE_LOG
|
||||
"HDF5 ${language} compiler wrapper is unable to compile a minimal HDF5 program.\n\n${output}")
|
||||
if(NOT HDF5_FIND_QUIETLY)
|
||||
message(STATUS
|
||||
"HDF5 ${language} compiler wrapper is unable to compile a minimal HDF5 program.")
|
||||
endif()
|
||||
else()
|
||||
execute_process(
|
||||
COMMAND ${HDF5_${language}_COMPILER_EXECUTABLE} -show ${lib_type_args} "${_HDF5_TEST_SRC}"
|
||||
@ -368,9 +372,13 @@ function( _HDF5_invoke_compiler language output_var return_value_var version_var
|
||||
RESULT_VARIABLE return_value
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
if(return_value AND NOT HDF5_FIND_QUIETLY)
|
||||
message(STATUS
|
||||
"Unable to determine HDF5 ${language} flags from HDF5 wrapper.")
|
||||
if(NOT return_value EQUAL 0)
|
||||
message(CONFIGURE_LOG
|
||||
"Unable to determine HDF5 ${language} flags from HDF5 wrapper.\n\n${output}")
|
||||
if(NOT HDF5_FIND_QUIETLY)
|
||||
message(STATUS
|
||||
"Unable to determine HDF5 ${language} flags from HDF5 wrapper.")
|
||||
endif()
|
||||
endif()
|
||||
execute_process(
|
||||
COMMAND ${HDF5_${language}_COMPILER_EXECUTABLE} -showconfig
|
||||
@ -379,9 +387,13 @@ function( _HDF5_invoke_compiler language output_var return_value_var version_var
|
||||
RESULT_VARIABLE return_value
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
if(return_value AND NOT HDF5_FIND_QUIETLY)
|
||||
message(STATUS
|
||||
"Unable to determine HDF5 ${language} version_var from HDF5 wrapper.")
|
||||
if(NOT return_value EQUAL 0)
|
||||
message(CONFIGURE_LOG
|
||||
"Unable to determine HDF5 ${language} version_var from HDF5 wrapper.\n\n${output}")
|
||||
if(NOT HDF5_FIND_QUIETLY)
|
||||
message(STATUS
|
||||
"Unable to determine HDF5 ${language} version_var from HDF5 wrapper.")
|
||||
endif()
|
||||
endif()
|
||||
string(REGEX MATCH "HDF5 Version: ([a-zA-Z0-9\\.\\-]*)" version "${config_output}")
|
||||
if(version)
|
||||
|
Loading…
Reference in New Issue
Block a user