File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ endif()
9292find_package (Blkid )
9393if (BLKID_FOUND)
9494 check_library_exists ("${BLKID_LIBRARY} " blkid_get_tag_value "" HAVE_BLKID_GET_TAG_VALUE )
95+ include_directories ("${BLKID_INCLUDE_DIRS} " )
9596endif ()
9697
9798find_package (Cap )
@@ -138,6 +139,7 @@ if(RPM_FOUND)
138139 check_library_exists ("${RPM_LIBRARY} " rpmFreeFilesystems "" HAVE_RPMFREEFILESYSTEMS )
139140 check_library_exists ("${RPM_LIBRARY} " rpmVerifyFile "" HAVE_RPMVERIFYFILE )
140141 set (HAVE_RPMVERCMP 1)
142+ include_directories ("${RPM_INCLUDE_DIRS} " )
141143endif ()
142144
143145find_package (SELinux )
@@ -568,18 +570,26 @@ include_directories(
568570 "src/XCCDF_POLICY/public/"
569571 "yaml-filter/src/"
570572 ${CMAKE_BINARY_DIR} # config.h is generated to build directory
573+ # Required dependencies include dirs can be added inconditionally
571574 ${LIBXML2_INCLUDE_DIR}
572575 ${XMLSEC_INCLUDE_DIRS}
576+ ${LIBXSLT_INCLUDE_DIR}
573577 ${OPENSSL_INCLUDE_DIR}
574578 ${PCRE2_INCLUDE_DIRS}
575- ${LIBXSLT_INCLUDE_DIR}
576- ${RPM_INCLUDE_DIRS}
577- ${GCRYPT_INCLUDE_DIRS}
578- ${BLKID_INCLUDE_DIRS}
579- ${POPT_INCLUDE_DIRS}
580- ${SELINUX_INCLUDE_DIRS}
581579)
582580
581+ if (GCRYPT_FOUND)
582+ include_directories ("${GCRYPT_INCLUDE_DIRS} " )
583+ endif ()
584+
585+ if (POPT_FOUND)
586+ include_directories ("${POPT_INCLUDE_DIRS} " )
587+ endif ()
588+
589+ if (SELINUX_FOUND)
590+ include_directories ("${SELINUX_INCLUDE_DIRS} " )
591+ endif ()
592+
583593# Honor visibility properties for all target types
584594# Run "cmake --help-policy CMP0063" for policy details
585595if (POLICY CMP0063)
You can’t perform that action at this time.
0 commit comments