Skip to content

Commit

Permalink
Test to reduce build verbosity due to include warnings on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MircoValentiniECMWF committed Dec 10, 2024
1 parent 41ea721 commit 5e2dd0e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
41 changes: 35 additions & 6 deletions src/ecom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,43 @@ execute_process(
OUTPUT_STRIP_TRAILING_WHITESPACE
)


# Path to the configured file
set(ECOM_VERSION_FILE ${CMAKE_CURRENT_BINARY_DIR}/output_manager_version_mod.F90)

# Remove the file if it exists
if(EXISTS ${ECOM_VERSION_FILE})
file(REMOVE ${ECOM_VERSION_FILE})
endif()

# Generate the file
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/output_manager_version_mod.F90.in
${ECOM_VERSION_FILE}
)




# Define the include directory path
set(ECOM_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/include)

# Clean the directory if it exists
if(EXISTS ${ECOM_INCLUDE_DIR})
file(REMOVE_RECURSE ${ECOM_INCLUDE_DIR})
endif()

# Create the directory
file(MAKE_DIRECTORY ${ECOM_INCLUDE_DIR})


#
# + CONFIGURE HEADERS
# ======================================================================
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/output_manager_version_mod.F90.in ${CMAKE_CURRENT_BINARY_DIR}/output_manager_version_mod.F90 )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/include/standard/output_manager_preprocessor_utils.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/output_manager_preprocessor_utils.h )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/include/standard/output_manager_preprocessor_trace_utils.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/output_manager_preprocessor_trace_utils.h )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/include/standard/output_manager_preprocessor_logging_utils.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/output_manager_preprocessor_logging_utils.h )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/include/standard/output_manager_preprocessor_errhdl_utils.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/output_manager_preprocessor_errhdl_utils.h )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/include/standard/output_manager_preprocessor_utils.h.in ${ECOM_INCLUDE_DIR}/output_manager_preprocessor_utils.h )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/include/standard/output_manager_preprocessor_trace_utils.h.in ${ECOM_INCLUDE_DIR}/output_manager_preprocessor_trace_utils.h )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/include/standard/output_manager_preprocessor_logging_utils.h.in ${ECOM_INCLUDE_DIR}/output_manager_preprocessor_logging_utils.h )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/include/standard/output_manager_preprocessor_errhdl_utils.h.in ${ECOM_INCLUDE_DIR}/output_manager_preprocessor_errhdl_utils.h )


#
Expand All @@ -72,7 +101,7 @@ set( OUTPUT_MANAGER_LIBRARIES
# + BUILD OUTPUT MANAGER CORE (this organisation comes from dep. problems in CMake)
# ======================================================================
list( APPEND output_manager_src
${CMAKE_CURRENT_BINARY_DIR}/output_manager_version_mod.F90
${ECOM_VERSION_FILE}
core/om_data_kind_mod.F90
core/om_data_types_mod.F90
core/om_constants_mod.F90
Expand Down
2 changes: 1 addition & 1 deletion src/ecom/grib_info/yaml_rules_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ SUBROUTINE READ_ENCODE_OPTIONS( CFG, ENCODE_OPTIONS, VERBOSE )
WRITE(ERROR_UNIT,*) 'direct To FDB: ', ENCODE_OPTIONS%DIRECT_TO_FDB
ENDIF
ELSE
ENCODE_OPTIONS%PACKING_TYPE = .FALSE.
ENCODE_OPTIONS%DIRECT_TO_FDB = .FALSE.
ENDIF

! Trace end of procedure (on success)
Expand Down

0 comments on commit 5e2dd0e

Please sign in to comment.