Choose output folder based on executable name and extension instead of generator name

This commit is contained in:
Ilya Fedin 2020-07-13 09:28:47 +04:00 committed by John Preston
parent 00460506b2
commit 000a7ae28b
1 changed files with 1 additions and 1 deletions

View File

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