summarylogtreecommitdiffstats
path: root/find-libgaminggear-cmake.patch
blob: 882d80a12e779a4be8008d8991e3cf9eb5b6db8b (plain)
1
2
3
4
5
6
7
8
9
10
11
-- cmake_modules/INSTALL_CMAKE_MODULESDIR.cmake
-- cmake_modules/INSTALL_CMAKE_MODULESDIR.cmake
@@ -10,6 +10,8 @@
 IF(NOT INSTALL_CMAKE_MODULESDIR)
 
   FILE(GLOB POSSIBLE_PATHS /usr/share/cmake*)
+  LIST(SORT POSSIBLE_PATHS)
+  LIST(REVERSE POSSIBLE_PATHS)
 
   FIND_PATH(INSTALL_CMAKE_MODULESDIR Modules
     PATHS