mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 05:11:15 -06:00
FindHDF5: Record compiler wrapper checks to configure log
This commit is contained in:
@@ -356,9 +356,13 @@ function( _HDF5_invoke_compiler language output_var return_value_var version_var
|
|||||||
ERROR_VARIABLE output
|
ERROR_VARIABLE output
|
||||||
RESULT_VARIABLE return_value
|
RESULT_VARIABLE return_value
|
||||||
)
|
)
|
||||||
if(return_value AND NOT HDF5_FIND_QUIETLY)
|
if(NOT return_value EQUAL 0)
|
||||||
message(STATUS
|
message(CONFIGURE_LOG
|
||||||
"HDF5 ${language} compiler wrapper is unable to compile a minimal HDF5 program.")
|
"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()
|
else()
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${HDF5_${language}_COMPILER_EXECUTABLE} -show ${lib_type_args} "${_HDF5_TEST_SRC}"
|
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
|
RESULT_VARIABLE return_value
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
)
|
)
|
||||||
if(return_value AND NOT HDF5_FIND_QUIETLY)
|
if(NOT return_value EQUAL 0)
|
||||||
message(STATUS
|
message(CONFIGURE_LOG
|
||||||
"Unable to determine HDF5 ${language} flags from HDF5 wrapper.")
|
"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()
|
endif()
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${HDF5_${language}_COMPILER_EXECUTABLE} -showconfig
|
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
|
RESULT_VARIABLE return_value
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
)
|
)
|
||||||
if(return_value AND NOT HDF5_FIND_QUIETLY)
|
if(NOT return_value EQUAL 0)
|
||||||
message(STATUS
|
message(CONFIGURE_LOG
|
||||||
"Unable to determine HDF5 ${language} version_var from HDF5 wrapper.")
|
"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()
|
endif()
|
||||||
string(REGEX MATCH "HDF5 Version: ([a-zA-Z0-9\\.\\-]*)" version "${config_output}")
|
string(REGEX MATCH "HDF5 Version: ([a-zA-Z0-9\\.\\-]*)" version "${config_output}")
|
||||||
if(version)
|
if(version)
|
||||||
|
|||||||
Reference in New Issue
Block a user