diff --git a/tools/codes_config.in b/tools/codes_config.in index cd5d9c726..53fe1f8bf 100755 --- a/tools/codes_config.in +++ b/tools/codes_config.in @@ -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 ""