Skip to content

Commit

Permalink
Suppress MSVC version banner
Browse files Browse the repository at this point in the history
Add '-nologo' option for MSVC compiler.

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
  • Loading branch information
keithc-ca committed Mar 15, 2021
1 parent 2c0d139 commit 04d43b6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmake/modules/ddr/DDRSetStub.cmake.in
Expand Up @@ -92,7 +92,10 @@ function(process_source_files src_files)
set(annotated_files)

# build up the command line to the preprocessor
set(BASE_ARGS )
set(BASE_ARGS)
if("@CMAKE_C_COMPILER_ID@" STREQUAL "MSVC")
list(APPEND BASE_ARGS "-nologo")
endif()
foreach(incdir IN LISTS OPT_INCLUDE_DIRS)
list(APPEND BASE_ARGS "-I${incdir}")
endforeach()
Expand Down Expand Up @@ -260,15 +263,15 @@ if(ZOS)
# Empty exclude regex, just include everything
file(GLOB_RECURSE target_files "${OBJECT_SEARCH_ROOT}/*.dbg")
else()
file(GLOB_RECURSE dbg_files RELATIVE "${OBJECT_SEARCH_ROOT}" "${OBJECT_SEARCH_ROOT}/*.dbg")
file(GLOB_RECURSE dbg_files RELATIVE "${OBJECT_SEARCH_ROOT}" "${OBJECT_SEARCH_ROOT}/*.dbg")
foreach(item IN LISTS dbg_files)
if(NOT "${item}" MATCHES "${OBJECT_EXCLUDE_REGEX}")
list(APPEND target_files "${OBJECT_SEARCH_ROOT}/${item}")
endif()
endforeach()
endif()

endif()

# now we generate our own list of binaries, so that they can be parsed if we are a subset
omr_join("\n" binaries_list
${target_files}
Expand Down

0 comments on commit 04d43b6

Please sign in to comment.