From acecadc9b84bb6528c3912db5c7e829848202c7e Mon Sep 17 00:00:00 2001 From: rubenp02 Date: Tue, 19 Nov 2024 12:14:41 +0100 Subject: [PATCH] Fix app name override in custom builds The compile definition QGC_APP_NAME is set to the CMake variable QGC_APP_NAME directly, which at that point is already defined to either CMAKE_PROJECT_NAME, or whatever it has been overriden to in the case of a custom build. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3aaabc5be92..c5bfe641f3c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -436,7 +436,7 @@ elseif(LINUX) endif() add_compile_definitions( - QGC_APP_NAME="${CMAKE_PROJECT_NAME}" + QGC_APP_NAME="${QGC_APP_NAME}" QGC_ORG_NAME="${QGC_ORG_NAME}" QGC_ORG_DOMAIN="${QGC_ORG_DOMAIN}" QGC_APP_VERSION_STR="${QGC_APP_VERSION_STR}"