Skip to content

Commit

Permalink
Product name env or set it
Browse files Browse the repository at this point in the history
  • Loading branch information
nbolton committed Sep 27, 2024
1 parent ec668e7 commit 13c0fd5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions cmake/Deskflow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit 13c0fd5

Please sign in to comment.