Skip to content

Commit 8284639

Browse files
Ionicppisar
authored andcommitted
build: append libsolv cmake path for Ubuntu/Debian
Make sure cmake can find FindLibSolv.cmake when installed in ${CMAKE_INSTALL_PREFIX}/share/cmake/libsolv like in Ubuntu and Debian. If the path doesn't exist like in other distros it will just be ignored.
1 parent af92549 commit 8284639

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
1717
if(${CMAKE_VERSION} VERSION_LESS 3)
1818
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/cmake/modules-cmake-2)
1919
endif()
20+
# On Ubuntu et al. CMake is configured differently and needs to be told where to find libsolv,
21+
# otherwise the build fails
22+
LIST (APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/share/cmake/libsolv/")
2023

2124

2225
# print exact name and version of the compiled project

0 commit comments

Comments
 (0)