diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-07-10 16:39:13 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-07-10 16:39:13 +0200 |
commit | 3b9da48671dabba5212b44ddf08af56326b5cccd (patch) | |
tree | 330af8d33097bf49031d4b41a998c190329dad60 /CMakeLists.txt | |
parent | Fix output name for flatpak (diff) | |
download | nheko-3b9da48671dabba5212b44ddf08af56326b5cccd.tar.xz |
Set output name after the variable is defined
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1efd7a4b..3ca7e5c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -663,10 +663,6 @@ else() endif() endif() -if (FLATPAK) - set_target_properties(nheko PROPERTIES OUTPUT_NAME "${APPID}") -endif() - if(APPLE) target_link_libraries (nheko PRIVATE Qt5::MacExtras) elseif(WIN32) @@ -762,6 +758,7 @@ set_target_properties(nheko PROPERTIES CMAKE_SKIP_INSTALL_RPATH TRUE) if(UNIX AND NOT APPLE) if(FLATPAK) set(APPID "io.github.NhekoReborn.Nheko") + set_target_properties(nheko PROPERTIES OUTPUT_NAME "${APPID}") else() set(APPID "nheko") endif() |