From 0441e3743e7d2d7e809903ad5dec9e72f5317dea Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Tue, 24 Sep 2019 10:57:54 +0200 Subject: [PATCH] pro2cmake: Don't generate GUI applications for config.tests On macOS the config.tests executable should not be a bundle, and on Windows it should be a subsystem console application. Change-Id: I2c8078cc9537df42683f3ff3bcce409402824555 Reviewed-by: Liang Qi Reviewed-by: Oliver Wolff Reviewed-by: Simon Hausmann --- util/cmake/pro2cmake.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index edd1b90caf4..f149898ae5b 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -3296,14 +3296,8 @@ def handle_config_test_project(scope: Scope, cm_fh: IO[str]): # Remove default QT libs. scope._append_operation("QT", RemoveOperation(["core", "gui"])) - config = scope.get("CONFIG") - gui = all(val not in config for val in ["console", "cmdline"]) - add_target = f"add_executable(${{PROJECT_NAME}}" - if gui: - add_target += " WIN32 MACOSX_BUNDLE" - temp_buffer = io.StringIO() write_all_source_file_lists(temp_buffer, scope, add_target, indent=0) buffer_value = temp_buffer.getvalue()