Skip to content

Commit ac883fc

Browse files
committed
[config] Improved support for PostgreSQL and slightly upgraded FindXWrapper.cmake scripts
1 parent 528d2ea commit ac883fc

12 files changed

+468
-105
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ packaging_set_other_options (TBZ2 "TBZ2;TGZ")
6666
## Dependencies ##
6767
########################################
6868
#
69-
get_external_libs (git "python 3.6" "boost 1.48" "icu 4.2" protobuf readline
70-
"xapian 1.0" "soci 3.0" "sqlite 3.0" "mysql 5.1" doxygen)
69+
get_external_libs (git "python 3.10" "boost 1.48" "icu 4.2" protobuf readline
70+
"xapian 1.0" "soci 4.0" "sqlite 3.0" "postgres 9" "mysql 5.1" doxygen)
7171

7272

7373
##############################################

config/FindBoostWrapper.cmake

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,9 @@ message (STATUS "Found Boost version: ${Boost_HUMAN_VERSION}")
1515

1616
# Check the version requirement only
1717
include (FindPackageHandleStandardArgs)
18-
if (${CMAKE_VERSION} VERSION_GREATER 2.8.1)
19-
find_package_handle_standard_args (BoostWrapper
20-
REQUIRED_VARS Boost_INCLUDE_DIRS Boost_LIBRARY_DIRS
21-
VERSION_VAR Boost_HUMAN_VERSION)
22-
else (${CMAKE_VERSION} VERSION_GREATER 2.8.1)
23-
find_package_handle_standard_args (BoostWrapper
24-
DEFAULT_MSG Boost_INCLUDE_DIRS Boost_LIBRARY_DIRS)
25-
endif (${CMAKE_VERSION} VERSION_GREATER 2.8.1)
18+
find_package_handle_standard_args (BoostWrapper
19+
REQUIRED_VARS Boost_INCLUDE_DIRS Boost_LIBRARY_DIRS
20+
VERSION_VAR Boost_HUMAN_VERSION)
2621

2722
if (BOOSTWRAPPER_FOUND)
2823
mark_as_advanced (BOOSTWRAPPER_FOUND Boost_HUMAN_VERSION)

config/FindDoxygenWrapper.cmake

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@ if (DOXYGEN_FOUND STREQUAL "YES")
1313

1414
# Check the version requirement only
1515
include (FindPackageHandleStandardArgs)
16-
if (${CMAKE_VERSION} VERSION_GREATER 2.8.1)
17-
find_package_handle_standard_args (DoxygenWrapper
18-
REQUIRED_VARS DOXYGEN_EXECUTABLE
19-
VERSION_VAR DOXYGEN_VERSION)
20-
else (${CMAKE_VERSION} VERSION_GREATER 2.8.1)
21-
find_package_handle_standard_args (DoxygenWrapper
22-
DEFAULT_MSG DOXYGEN_EXECUTABLE)
23-
endif (${CMAKE_VERSION} VERSION_GREATER 2.8.1)
16+
find_package_handle_standard_args (DoxygenWrapper
17+
REQUIRED_VARS DOXYGEN_EXECUTABLE
18+
VERSION_VAR DOXYGEN_VERSION)
2419

2520
endif (DOXYGEN_FOUND STREQUAL "YES")
2621

0 commit comments

Comments
 (0)