mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 06:37:24 +02:00
Choose output folder based on executable name and extension instead of generator name
This commit is contained in:
parent
00460506b2
commit
000a7ae28b
1 changed files with 1 additions and 1 deletions
|
@ -1271,7 +1271,7 @@ PRIVATE
|
|||
TDESKTOP_API_HASH=${TDESKTOP_API_HASH}
|
||||
)
|
||||
|
||||
if (${CMAKE_GENERATOR} MATCHES "(Visual Studio|Xcode)")
|
||||
if (APPLE OR NOT CMAKE_EXECUTABLE_SUFFIX STREQUAL "" OR NOT "${output_name}" STREQUAL "Telegram")
|
||||
set(output_folder ${CMAKE_BINARY_DIR})
|
||||
elseif (DESKTOP_APP_SPECIAL_TARGET STREQUAL "")
|
||||
set(output_folder ${CMAKE_BINARY_DIR}/bin)
|
||||
|
|
Loading…
Add table
Reference in a new issue