0003-Fix-warning-in-FindGIO.cmake.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. From 6f52fa346ef5dd5c22895a5fc404bf02bf29932c Mon Sep 17 00:00:00 2001
  2. From: Roman Lebedev <lebedev.ri@gmail.com>
  3. Date: Thu, 9 Jun 2016 12:52:09 +0300
  4. Subject: [PATCH 3/3] Fix warning in FindGIO.cmake
  5. CMake Warning (dev) at cmake/modules/LibFindMacros.cmake:160 (message):
  6. Plural form Glib_LIBRARIES;Glib_LIBRARY found in config options of GIO.
  7. This works as before but is now deprecated. Please only use singular forms
  8. INCLUDE_DIR and LIBRARY, and update your find scripts for LibFindMacros >
  9. 2.0 automatic dependency system (most often you can simply remove the
  10. PROCESS variables entirely).
  11. Call Stack (most recent call first):
  12. cmake/modules/FindGIO.cmake:26 (libfind_process)
  13. src/CMakeLists.txt:196 (find_package)
  14. (cherry picked from commit 0717a2f5fc9dce880376c22856eae0c4dd7e4955)
  15. ---
  16. cmake/modules/FindGIO.cmake | 2 --
  17. 1 file changed, 2 deletions(-)
  18. diff --git a/cmake/modules/FindGIO.cmake b/cmake/modules/FindGIO.cmake
  19. index c039042..a62f36e 100644
  20. --- a/cmake/modules/FindGIO.cmake
  21. +++ b/cmake/modules/FindGIO.cmake
  22. @@ -21,7 +21,5 @@ find_library(GIO_LIBRARY
  23. # Set the include dir variables and the libraries and let libfind_process do the rest.
  24. # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
  25. -set(GIO_PROCESS_INCLUDES Glib_INCLUDE_DIRS)
  26. -set(GIO_PROCESS_LIBS GIO_LIBRARY Glib_LIBRARIES)
  27. libfind_process(GIO)