summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
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 94c7965638..5e4e9abc9e 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -1711,7 +1711,7 @@ def write_example(cm_fh: typing.IO[str], scope: Scope,
(public_libs, private_libs) = extract_cmake_libraries(scope)
write_find_package_section(cm_fh, public_libs, private_libs, indent=indent)
- add_executable = 'add_executable({}'.format(binary_name);
+ add_executable = 'add_{}executable({}'.format("qt_gui_" if gui else "", binary_name);
if gui:
add_executable += ' WIN32 MACOSX_BUNDLE'