[PATCH] CMakeLists.txt: append libsolv cmake path
authorMihai Moldovan <ionic@ionic.de>
Tue, 29 Sep 2020 16:30:16 +0000 (18:30 +0200)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 23 Apr 2022 15:26:04 +0000 (16:26 +0100)
Make sure cmake finds FindLibSolv.cmake installed
in ${CMAKE_INSTALL_PREFIX}/share/cmake/libsolv.

Gbp-Pq: Name 0001-CMakeLists.txt-append-libsolv-cmake-path.patch

CMakeLists.txt

index 2dd55c5726b020d0b94fc207ee50c11b4e9598a7..00ab52f7887d8eda973080766828dfc22c61b902 100644 (file)
@@ -46,6 +46,7 @@ if(APPLE)
     set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH};/usr/local/share/cmake/Modules/)
     include_directories(/usr/local/include)
 endif()
+LIST (APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/share/cmake/libsolv/")
 
 
 # build dependencies