From 3b9da48671dabba5212b44ddf08af56326b5cccd Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 10 Jul 2022 16:39:13 +0200 Subject: Set output name after the variable is defined --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'CMakeLists.txt') 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() -- cgit 1.4.1