Set output name after the variable is defined

This commit is contained in:
Nicolas Werner 2022-07-10 16:39:13 +02:00
parent b654064cd9
commit 3b9da48671
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 1 additions and 4 deletions

View File

@ -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()