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}
|
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})
|
set(output_folder ${CMAKE_BINARY_DIR})
|
||||||
elseif (DESKTOP_APP_SPECIAL_TARGET STREQUAL "")
|
elseif (DESKTOP_APP_SPECIAL_TARGET STREQUAL "")
|
||||||
set(output_folder ${CMAKE_BINARY_DIR}/bin)
|
set(output_folder ${CMAKE_BINARY_DIR}/bin)
|
||||||
|
|
Loading…
Reference in a new issue