aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules
diff options
context:
space:
mode:
authorAvatar Heiko Becker <heirecka@exherbo.org> 2021-11-17 20:12:08 +0100
committerAvatar Heiko Becker <heirecka@exherbo.org> 2021-11-18 23:29:29 +0100
commite3c8530d71a2c9c3e1657d17552ef181974a43ce (patch)
tree9c7ea45375f3e1a8fc2388979f633079ababe1ad /cmake/modules
parenteae31d0882eb1ad68e0da383227e2d69ad1d44b6 (diff)
downloadpaludis-e3c8530d71a2c9c3e1657d17552ef181974a43ce.tar.gz
paludis-e3c8530d71a2c9c3e1657d17552ef181974a43ce.tar.xz
build: Use cmake's FindSQLite3 module
instead of a custom one we have to maintain. Raises the required cmake version to 3.14.0 which shouldn't be a problem because cmake.exlib on Exherbo already requires 3.16.0 and it was released over two and a half years ago.
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/FindSQLite3.cmake55
1 files changed, 0 insertions, 55 deletions
diff --git a/cmake/modules/FindSQLite3.cmake b/cmake/modules/FindSQLite3.cmake
deleted file mode 100644
index 306fd9f22..000000000
--- a/cmake/modules/FindSQLite3.cmake
+++ /dev/null
@@ -1,55 +0,0 @@
-#.rst:
-# FindSQLite3
-# ------------
-#
-# Find SQLite3 library and headers
-#
-# The module defines the following variables:
-#
-# ::
-#
-# SQLite3_FOUND - true if SQLite3 was found
-# SQLite3_INCLUDE_DIR - include search path
-# SQLite3_LIBRARIES - libraries to link
-# SQLite3_VERSION - libmagic 3-component version number
-
-if(SQLite3_INCLUDE_DIRS AND SQLite3_LIBRARIES)
- set(SQLite3_FOUND TRUE)
-else()
- find_package(PkgConfig QUIET)
- pkg_check_modules(PC_SQLITE3 QUIET sqlite3)
-
- find_path(SQLite3_INCLUDE_DIR
- NAMES
- sqlite3.h
- HINTS
- ${PC_SQLITE3_INCLUDEDIR}
- ${PC_SQLITE3_INCLUDE_DIRS}
- ${CMAKE_INSTALL_FULL_INCLUDEDIR})
- find_library(SQLite3_LIBRARIES
- NAMES
- sqlite3 libsqlite3
- HINTS
- ${PC_SQLITE3_LIBDIR}
- ${PC_SQLITE3_LIBRARY_DIRS}
- ${CMAKE_INSTALL_FULL_LIBDIR})
-
- if(SQLite3_INCLUDE_DIR AND EXISTS "${SQLite3_INCLUDE_DIR}/sqlite3.h")
- file(STRINGS "${SQLite3_INCLUDE_DIR}/sqlite3.h"
- sqlite3_version_str
- REGEX "^#define SQLITE_VERSION[ ]+\".*\"")
- string(REGEX REPLACE "^#define SQLITE_VERSION[ ]+\"([^\"]*)\".*" "\\1"
- SQLite3_VERSION_STRING "${sqlite3_version_str}")
- unset(sqlite3_version_str)
- endif()
-
- include(FindPackageHandleStandardArgs)
- find_package_handle_standard_args(SQLite3
- REQUIRED_VARS
- SQLite3_LIBRARIES
- SQLite3_INCLUDE_DIR
- VERSION_VAR
- SQLite3_VERSION_STRING)
- mark_as_advanced(SQLite3_INCLUDE_DIR SQLite3_LIBRARIES)
-endif()
-