From 3a9a9c6f36e289e2a5d03f8d74b27afcc02b20ac Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 22 Aug 2022 21:47:19 +0200 Subject: [PATCH] Apply cmake-format --- cmake/modules/AppTarget.cmake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmake/modules/AppTarget.cmake b/cmake/modules/AppTarget.cmake index 28c37b7..de1678f 100644 --- a/cmake/modules/AppTarget.cmake +++ b/cmake/modules/AppTarget.cmake @@ -189,8 +189,9 @@ find_template_file("appdata.xml" CPP_UTILITIES APP_APPSTREAM_TEMPLATE_FILE) include(CMakeParseArguments) function (add_custom_desktop_file) # skip if not building with GUI support - if (NOT META_DESKTOP_FILE_FOR_CLI AND ((NOT DEFINED META_GUI_OPTIONAL OR META_GUI_OPTIONAL) AND NOT (WIDGETS_GUI OR QUICK_GUI))) - return () + if (NOT META_DESKTOP_FILE_FOR_CLI AND ((NOT DEFINED META_GUI_OPTIONAL OR META_GUI_OPTIONAL) AND NOT (WIDGETS_GUI + OR QUICK_GUI))) + return() endif () # parse arguments @@ -227,8 +228,9 @@ endfunction () # define function to add *.desktop file and meta info from project meta data function (add_desktop_file) # skip if not building with GUI support - if (NOT META_DESKTOP_FILE_FOR_CLI AND ((NOT DEFINED META_GUI_OPTIONAL OR META_GUI_OPTIONAL) AND NOT (WIDGETS_GUI OR QUICK_GUI))) - return () + if (NOT META_DESKTOP_FILE_FOR_CLI AND ((NOT DEFINED META_GUI_OPTIONAL OR META_GUI_OPTIONAL) AND NOT (WIDGETS_GUI + OR QUICK_GUI))) + return() endif () # compose actions