1
0
telegram-desktop/0001-use-bundled-range.patch
Marcel Kuehlhorn 7852f1427c Accepting request 765395 from home:tux93
- Update to 1.9.4
  * Bug fixes and other minor improvements.
- Removed patches, option to use distribution libraries
  added upstream:
  * 0001-Dynamic-linking-system-libs.patch
  * 0002-Dynamic-linking-system-qt.patch
  * 0004-gtk3.patch
- Added patches for dependencies not available from repos:
  * 0001-use-bundled-range.patch
  * 0002-use-bundled-rlottie.patch

OBS-URL: https://build.opensuse.org/request/show/765395
OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=119
2020-01-22 11:30:17 +00:00

30 lines
1.0 KiB
Diff

--- a/cmake/external/ranges/CMakeLists.txt.orig 2020-01-17 21:56:04.561905759 +0100
+++ b/cmake/external/ranges/CMakeLists.txt 2020-01-17 21:56:46.034629133 +0100
@@ -7,15 +7,10 @@
add_library(external_ranges INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_ranges ALIAS external_ranges)
-if (DESKTOP_APP_USE_PACKAGED)
- find_package(range-v3 REQUIRED)
- target_link_libraries(external_ranges INTERFACE range-v3::range-v3)
-else()
- target_include_directories(external_ranges SYSTEM
- INTERFACE
- ${libs_loc}/range-v3/include
- )
-endif()
+target_include_directories(external_ranges SYSTEM
+INTERFACE
+ ${libs_loc}/range-v3/include
+)
if (WIN32)
target_compile_options(external_ranges
@@ -23,4 +18,4 @@ if (WIN32)
/experimental:preprocessor # need for range-v3 see https://github.com/ericniebler/range-v3#supported-compilers
/wd5105 # needed for `/experimental:preprocessor`, suppressing C5105 "macro expansion producing 'defined' has undefined behavior"
)
-endif()
\ No newline at end of file
+endif()