Update CMakeLists.txt

Move `ASM` to Linux only
To avoid `cannot open file 'dxguid.obj'` on Windows.

Closes #26646
This commit is contained in:
c0re100 2023-08-14 12:36:31 +08:00 committed by John Preston
parent b352537279
commit b1cf6c57b3

View File

@ -19,9 +19,11 @@ include(cmake/validate_special_target.cmake)
include(cmake/version.cmake)
desktop_app_parse_version(Telegram/build/version)
set(project_langs ASM C CXX)
set(project_langs C CXX)
if (APPLE)
list(APPEND project_langs OBJC OBJCXX)
elseif (LINUX)
list(APPEND project_langs ASM)
endif()
project(Telegram