Skip to content

Commit

Permalink
Merge pull request #903 from mattmundell/xml-split-check-9.0
Browse files Browse the repository at this point in the history
Warn in cmake if xml_split is missing (9.0)
  • Loading branch information
timopollmeier authored Dec 16, 2019
2 parents 0ab74e6 + d817a36 commit 538eaeb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Prerequisites:
* PostgreSQL database >= 9.6
* pkg-config
* libical >= 1.0.0
* xml_split (optional, lowers sync memory usage, Debian package: xml-twig-tools)
* xml_split (recommended, lowers sync RAM usage, Debian package: xml-twig-tools)

Prerequisites for certificate generation:
* GnuTLS certtool
Expand Down
8 changes: 8 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ elseif ((CMAKE_MATCH_1 EQUAL 9 AND CMAKE_MATCH_2 LESS 6)
message (STATUS "PostgreSQL version ${CMAKE_MATCH_1}.${CMAKE_MATCH_2}${CMAKE_MATCH_3}")
endif (NOT CMAKE_MATCH_1)

message (STATUS "Looking for xml_split...")
find_program (XML_SPLIT_EXECUTABLE xml_split DOC "xml_split")
if (NOT XML_SPLIT_EXECUTABLE)
message (WARNING "xml_split is recommended to reduce SCAP sync memory usage (Debian package xml-twig-tools).")
else (NOT XML_SPLIT_EXECUTABLE)
message (STATUS "Looking for xml_split... ${XML_SPLIT_EXECUTABLE}")
endif (NOT XML_SPLIT_EXECUTABLE)

message (STATUS "Looking for gpgme...")
find_library (GPGME gpgme)
if (NOT GPGME)
Expand Down

0 comments on commit 538eaeb

Please sign in to comment.