Tools: codes_config build type

This commit is contained in:
shahramn 2024-09-04 15:09:09 +01:00
parent c1f67e1069
commit 044cc0d26c
1 changed files with 7 additions and 2 deletions

View File

@ -33,7 +33,7 @@ print_feature()
fi fi
} }
build_type="@CMAKE_BUILD_TYPE@"
info() info()
{ {
echo "ecCodes version (${ECCODES_VERSION_STR}), git-sha1 ${ECCODES_GIT_SHA1}" echo "ecCodes version (${ECCODES_VERSION_STR}), git-sha1 ${ECCODES_GIT_SHA1}"
@ -45,7 +45,12 @@ info()
echo " processor : @CMAKE_SYSTEM_PROCESSOR@" echo " processor : @CMAKE_SYSTEM_PROCESSOR@"
echo " sources : @PROJECT_SOURCE_DIR@" echo " sources : @PROJECT_SOURCE_DIR@"
echo " c++ compiler : @CMAKE_CXX_COMPILER_ID@ @CMAKE_CXX_COMPILER_VERSION@" echo " c++ compiler : @CMAKE_CXX_COMPILER_ID@ @CMAKE_CXX_COMPILER_VERSION@"
# Add the most common build type
if [ $build_type = "RelWithDebInfo" ]; then
echo " flags : @CMAKE_CXX_FLAGS_RELWITHDEBINFO@"
else
echo " flags : @CMAKE_CXX_FLAGS@" echo " flags : @CMAKE_CXX_FLAGS@"
fi
# echo " fortran compiler: @CMAKE_Fortran_COMPILER_ID@ @CMAKE_Fortran_COMPILER_VERSION@" # echo " fortran compiler: @CMAKE_Fortran_COMPILER_ID@ @CMAKE_Fortran_COMPILER_VERSION@"
# echo " flags : @ECCODES_Fortran_FLAGS@" # echo " flags : @ECCODES_Fortran_FLAGS@"
echo "" echo ""