Skip to content

Commit

Permalink
Fix app name override in custom builds
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rubenp02 authored and HTRamsey committed Nov 20, 2024
1 parent 2814c75 commit acecadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit acecadc

Please sign in to comment.