From 0a96d845817cd9a1feaa2154aee459982babfe32 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Fri, 6 Jan 2023 16:24:12 +0000 Subject: [PATCH] build: make release build quieter Silence output of nuget commands used to get gettext tools for the Windows build. Remove Objective-C++ source files (.mm extension) from the list of all sources passed to xgettext to silence the warning about the file type being unrecognized. These do not have any strings that need to be translated. Signed-off-by: Rafael Kitover --- src/wx/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 2fcdc717..f079184c 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -555,12 +555,14 @@ if(ENABLE_NLS) # Add nuget package source. execute_process( COMMAND nuget sources add -Name "NuGet official package source" -Source "https://api.nuget.org/v3/index.json" + OUTPUT_QUIET WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) # Install the Gettext.Tools package. execute_process( COMMAND nuget.exe install Gettext.Tools -OutputDirectory ${CMAKE_BINARY_DIR}/nuget + OUTPUT_QUIET WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) @@ -778,8 +780,6 @@ set( set(ALL_SRC_WX ${SRC_WX}) -list(APPEND ALL_SRC_WX ${CMAKE_CURRENT_SOURCE_DIR}/macsupport.mm) -list(APPEND ALL_SRC_WX ${CMAKE_CURRENT_SOURCE_DIR}/widgets/dpi-support-mac.mm) list(APPEND ALL_SRC_WX ${CMAKE_CURRENT_SOURCE_DIR}/widgets/dpi-support.cpp) if(APPLE) @@ -845,7 +845,6 @@ endif() # make files included for gettext pot generation list(APPEND ALL_HDR_WX autoupdater/autoupdater.h) list(APPEND ALL_SRC_WX autoupdater/macos/autoupdater.cpp) -list(APPEND ALL_SRC_WX autoupdater/macos/sparkle-wrapper.mm) list(APPEND ALL_HDR_WX autoupdater/macos/sparkle-wrapper.h) if(APPLE AND ENABLE_ONLINEUPDATES)