mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-25 15:03:03 +02:00
Don't check non-MSVC options with MSVC for tgcalls
This commit is contained in:
parent
3ac03b43e1
commit
fe3d8ea2be
1 changed files with 11 additions and 10 deletions
|
@ -225,8 +225,7 @@ PRIVATE
|
|||
RTC_ENABLE_VP9
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
elseif (APPLE)
|
||||
if (APPLE)
|
||||
target_compile_options(lib_tgcalls
|
||||
PRIVATE
|
||||
-fobjc-arc
|
||||
|
@ -253,14 +252,16 @@ elseif (APPLE)
|
|||
)
|
||||
endif()
|
||||
|
||||
target_compile_options_if_exists(lib_tgcalls
|
||||
PRIVATE
|
||||
-Wno-deprecated-volatile
|
||||
-Wno-ambiguous-reversed-operator
|
||||
-Wno-deprecated-declarations
|
||||
-Wno-unqualified-std-cast-call
|
||||
-Wno-unused-function
|
||||
)
|
||||
if (NOT MSVC)
|
||||
target_compile_options_if_exists(lib_tgcalls
|
||||
PRIVATE
|
||||
-Wno-deprecated-volatile
|
||||
-Wno-ambiguous-reversed-operator
|
||||
-Wno-deprecated-declarations
|
||||
-Wno-unqualified-std-cast-call
|
||||
-Wno-unused-function
|
||||
)
|
||||
endif()
|
||||
|
||||
remove_target_sources(lib_tgcalls ${tgcalls_loc}
|
||||
platform/android/AndroidContext.cpp
|
||||
|
|
Loading…
Add table
Reference in a new issue