include also the subdirectory, because rpm headers include others
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 14 Mar 2008 13:32:22 +0000 (13:32 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 14 Mar 2008 13:32:22 +0000 (13:32 +0000)
relatively too

CMakeLists.txt

index 7136b54..17ec7dd 100644 (file)
@@ -43,6 +43,8 @@ IF ( NOT RPM_FOUND)
   MESSAGE( FATAL_ERROR " rpm-devel not found" )
 ELSE ( NOT RPM_FOUND)
   INCLUDE_DIRECTORIES(${RPM_INCLUDE_DIR})
+  # fix includes not relative to rpm
+  INCLUDE_DIRECTORIES(${RPM_INCLUDE_DIR}/rpm)
 ENDIF( NOT RPM_FOUND)
 
 FIND_PACKAGE(Boost REQUIRED)