summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-10-15 17:58:15 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-10-19 11:51:44 +0200
commitc3fee0d984e59cee3ab6d069011015dd850be98f (patch)
treee761c7af1e6e3ceeeae2b36e43681f2c707da43f /util
parent407e171b40c3be3036ef71227d43c49f0b8d5788 (diff)
CMake: Rename add_qt_gui_executable to qt_add_executable
Also adjust pro2cmake to use the new qt_add_executable name instead of add_qt_gui_executable. No compatibility functions provided this time, so we'll need to follow through all repos and regenerate all examples. Two reasons for not providing compaitibility functions: 1) We don't intend add_qt_gui_executable to be public API 2) A previous case with qtquickcontrols2 and qttools pointed out that making top-level builds work with cross-compatibility API is not simple. So just go ahead and regenerate everything. Task-number: QTBUG-87661 Change-Id: I2f228827b786ae03bf7e1bf3908ea02a8794ed52 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 0e6f916f94..e1a1ed8e11 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -3719,7 +3719,7 @@ def write_example(
add_target += f"target_sources({binary_name} PRIVATE"
else:
- add_target = f'add_{"qt_gui_" if gui else ""}executable({binary_name}'
+ add_target = f'qt_add_executable({binary_name}'
write_all_source_file_lists(cm_fh, scope, add_target, indent=0)
cm_fh.write(")\n")