Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37605516
en ru br
ALT Linux repos
S:11.1-alt1

Group :: Graphics
RPM: apitrace

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: apitrace-11.1-disabled-check-subdirectory.patch
Download


diff -rupN apitrace/thirdparty/CMakeLists.txt apitrace-new/thirdparty/CMakeLists.txt
--- apitrace/thirdparty/CMakeLists.txt	2022-05-20 17:14:48.000000000 +0300
+++ apitrace-new/thirdparty/CMakeLists.txt	2023-07-03 17:51:39.811949581 +0300
@@ -8,59 +8,6 @@ macro (target_optimize TARGET)
     endif ()
 endmacro ()
 
-# Same as include command, but inside a function scope
-function (include_with_scope)
-    include (${ARGV})
-endfunction ()
-
-set (SUBMODULES_MISSING FALSE)
-foreach (path IN ITEMS
-    brotli/LICENSE
-    gtest/googletest/LICENSE
-    libbacktrace/LICENSE
-    libpng/LICENSE
-    snappy/COPYING
-    zlib/README
-)
-    if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${path}")
-        message (SEND_ERROR "error: ${CMAKE_CURRENT_SOURCE_DIR}/${path} does not exist")
-        set (SUBMODULES_MISSING TRUE)
-    endif ()
-endforeach ()
-if (SUBMODULES_MISSING)
-    message (FATAL_ERROR "Update Git submodules by running\ngit submodule update --init --depth 1 --recursive")
-endif ()
-
-if (ENABLE_STATIC_SNAPPY OR NOT Snappy_FOUND)
-    message (STATUS "Using bundled Snappy")
-    include_with_scope (snappy.cmake)
-endif ()
-
-if (NOT ZLIB_FOUND)
-    message (STATUS "Using bundled ZLIB")
-    include_with_scope (zlib.cmake)
-endif ()
-
-if (NOT PNG_FOUND)
-    message (STATUS "Using bundled PNG")
-    include_with_scope (libpng.cmake)
-endif ()
-
-if (NOT BROTLIDEC_FOUND OR NOT BROTLIENC_FOUND)
-    message (STATUS "Using bundled Brotli")
-    include_with_scope (brotli.cmake)
-endif ()
-
-if (CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF")
-    include_with_scope (libbacktrace.cmake)
-endif ()
-
-# We use non-standard C++ flags, so we can't just use GTest's CMakeLists.txt
-if (NOT GTEST_FOUND)
-    message (STATUS "Using bundled GTest")
-    include_with_scope (gtest.cmake)
-endif ()
-
 if (MSVC)
     add_subdirectory (getopt)
 else ()
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin