mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-26 07:23:02 +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
|
RTC_ENABLE_VP9
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WIN32)
|
if (APPLE)
|
||||||
elseif (APPLE)
|
|
||||||
target_compile_options(lib_tgcalls
|
target_compile_options(lib_tgcalls
|
||||||
PRIVATE
|
PRIVATE
|
||||||
-fobjc-arc
|
-fobjc-arc
|
||||||
|
@ -253,14 +252,16 @@ elseif (APPLE)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_compile_options_if_exists(lib_tgcalls
|
if (NOT MSVC)
|
||||||
PRIVATE
|
target_compile_options_if_exists(lib_tgcalls
|
||||||
-Wno-deprecated-volatile
|
PRIVATE
|
||||||
-Wno-ambiguous-reversed-operator
|
-Wno-deprecated-volatile
|
||||||
-Wno-deprecated-declarations
|
-Wno-ambiguous-reversed-operator
|
||||||
-Wno-unqualified-std-cast-call
|
-Wno-deprecated-declarations
|
||||||
-Wno-unused-function
|
-Wno-unqualified-std-cast-call
|
||||||
)
|
-Wno-unused-function
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
remove_target_sources(lib_tgcalls ${tgcalls_loc}
|
remove_target_sources(lib_tgcalls ${tgcalls_loc}
|
||||||
platform/android/AndroidContext.cpp
|
platform/android/AndroidContext.cpp
|
||||||
|
|
Loading…
Add table
Reference in a new issue