mirror of https://github.com/ecmwf/eccodes.git
Tools: codes_config build type
This commit is contained in:
parent
c1f67e1069
commit
044cc0d26c
|
@ -33,7 +33,7 @@ print_feature()
|
|||
fi
|
||||
}
|
||||
|
||||
|
||||
build_type="@CMAKE_BUILD_TYPE@"
|
||||
info()
|
||||
{
|
||||
echo "ecCodes version (${ECCODES_VERSION_STR}), git-sha1 ${ECCODES_GIT_SHA1}"
|
||||
|
@ -45,7 +45,12 @@ info()
|
|||
echo " processor : @CMAKE_SYSTEM_PROCESSOR@"
|
||||
echo " sources : @PROJECT_SOURCE_DIR@"
|
||||
echo " c++ compiler : @CMAKE_CXX_COMPILER_ID@ @CMAKE_CXX_COMPILER_VERSION@"
|
||||
echo " flags : @CMAKE_CXX_FLAGS@"
|
||||
# Add the most common build type
|
||||
if [ $build_type = "RelWithDebInfo" ]; then
|
||||
echo " flags : @CMAKE_CXX_FLAGS_RELWITHDEBINFO@"
|
||||
else
|
||||
echo " flags : @CMAKE_CXX_FLAGS@"
|
||||
fi
|
||||
# echo " fortran compiler: @CMAKE_Fortran_COMPILER_ID@ @CMAKE_Fortran_COMPILER_VERSION@"
|
||||
# echo " flags : @ECCODES_Fortran_FLAGS@"
|
||||
echo ""
|
||||
|
|
Loading…
Reference in New Issue