Use separate variable for cfg file name in CMAKE.

Signed-off-by: alex-z <blackslayer4@gmail.com>
This commit is contained in:
alex-z 2022-11-07 10:00:23 +01:00
Родитель a5e4d97593
Коммит ba9d3269e3
3 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -1,6 +1,7 @@
set( APPLICATION_NAME "Nextcloud" )
set( APPLICATION_SHORTNAME "Nextcloud" )
set( APPLICATION_EXECUTABLE "nextcloud" )
set( APPLICATION_CONFIG_NAME "${APPLICATION_EXECUTABLE}" )
set( APPLICATION_DOMAIN "nextcloud.com" )
set( APPLICATION_VENDOR "Nextcloud GmbH" )
set( APPLICATION_UPDATE_URL "https://updates.nextcloud.org/client/" CACHE STRING "URL for updater" )

Просмотреть файл

@ -17,6 +17,7 @@
#cmakedefine APPLICATION_REV_DOMAIN "@APPLICATION_REV_DOMAIN@"
#cmakedefine APPLICATION_SHORTNAME "@APPLICATION_SHORTNAME@"
#cmakedefine APPLICATION_EXECUTABLE "@APPLICATION_EXECUTABLE@"
#cmakedefine APPLICATION_CONFIG_NAME "@APPLICATION_CONFIG_NAME@"
#cmakedefine APPLICATION_UPDATE_URL "@APPLICATION_UPDATE_URL@"
#cmakedefine APPLICATION_HELP_URL "@APPLICATION_HELP_URL@"
#cmakedefine APPLICATION_ICON_NAME "@APPLICATION_ICON_NAME@"

Просмотреть файл

@ -196,7 +196,7 @@ QString Theme::version() const
QString Theme::configFileName() const
{
return QStringLiteral(APPLICATION_EXECUTABLE ".cfg");
return QStringLiteral(APPLICATION_CONFIG_NAME ".cfg");
}
#ifndef TOKEN_AUTH_ONLY