From 13c0fd569d8efea7acb582d8befddf770dc3d910 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Fri, 27 Sep 2024 21:15:20 +0100 Subject: [PATCH] Product name env or set it --- cmake/Deskflow.cmake | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cmake/Deskflow.cmake b/cmake/Deskflow.cmake index 3d16b158a..c4d391705 100644 --- a/cmake/Deskflow.cmake +++ b/cmake/Deskflow.cmake @@ -40,7 +40,14 @@ endmacro() macro(configure_meta) if(NOT "$ENV{SYNERGY_PRODUCT_NAME}" STREQUAL "") - set(DESKFLOW_PRODUCT_NAME $ENV{SYNERGY_PRODUCT_NAME}) + message(STATUS "Using product name from environment variable") + set(DESKFLOW_PRODUCT_NAME + $ENV{SYNERGY_PRODUCT_NAME} + CACHE STRING "Product name") + else() + set(DESKFLOW_PRODUCT_NAME + "Synergy" + CACHE STRING "Product name") endif() set(DESKFLOW_APP_ID @@ -51,10 +58,6 @@ macro(configure_meta) "symless.com" CACHE STRING "Domain of the app maintainer (not a URL)") - set(DESKFLOW_PRODUCT_NAME - "Synergy" - CACHE STRING "Product name") - set(DESKFLOW_AUTHOR_NAME "Symless" CACHE STRING "Author name")