diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2020-11-27 14:49:33 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2020-11-27 14:49:33 +0900 |
commit | b712cabb59f7155205489f15a37addb4ac8b0069 (patch) | |
tree | f23ecab07fbaa48e274c587d66708daad1cd347a /CMakeLists.txt | |
parent | 2792a56227313bb9f16bd70604e79f47e9650885 (diff) | |
download | libsolv-b712cabb59f7155205489f15a37addb4ac8b0069.tar.gz libsolv-b712cabb59f7155205489f15a37addb4ac8b0069.tar.bz2 libsolv-b712cabb59f7155205489f15a37addb4ac8b0069.zip |
Imported Upstream version 0.7.15upstream/0.7.15
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 767aa66..3541f49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,6 +209,12 @@ ENDIF (ENABLE_RPMDB) INCLUDE (CheckIncludeFile) IF (ENABLE_RPMDB OR ENABLE_RPMPKG_LIBRPM) + FIND_PATH (RPM_INCLUDE_DIR NAMES rpm/rpmio.h) + IF (RPM_INCLUDE_DIR) + INCLUDE_DIRECTORIES (${RPM_INCLUDE_DIR}) + SET (CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${RPM_INCLUDE_DIR}) + ENDIF (RPM_INCLUDE_DIR) + FIND_LIBRARY (RPMDB_LIBRARY NAMES rpmdb) IF (NOT RPMDB_LIBRARY) |