summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-10-22 18:42:22 (GMT)
committerGitHub <noreply@github.com>2018-10-22 18:42:22 (GMT)
commitd94c10574f44c10ff0df9ce24c09cb6fcaac37c0 (patch)
tree57eb91bb903aba85699490f25caba9c39d7badec /cmake
parent2c1243302fddc162ce72d0469227b5cabb375f7f (diff)
parente4f408eb4aad7fb035847616debe68fe115e2ae4 (diff)
downloadDoxygen-d94c10574f44c10ff0df9ce24c09cb6fcaac37c0.zip
Doxygen-d94c10574f44c10ff0df9ce24c09cb6fcaac37c0.tar.gz
Doxygen-d94c10574f44c10ff0df9ce24c09cb6fcaac37c0.tar.bz2
Merge pull request #6482 from abathur/sql3
update to the experimental sqlite3 generator
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindSQLite3.cmake10
1 files changed, 9 insertions, 1 deletions
diff --git a/cmake/FindSQLite3.cmake b/cmake/FindSQLite3.cmake
index 77b8eb4..45cc212 100644
--- a/cmake/FindSQLite3.cmake
+++ b/cmake/FindSQLite3.cmake
@@ -71,8 +71,16 @@ else (SQLITE3_LIBRARIES AND SQLITE3_INCLUDE_DIRS)
endif (SQLITE3_INCLUDE_DIRS AND SQLITE3_LIBRARIES)
if (SQLITE3_FOUND)
+
+ # Extract version from header file
+ find_file(SQLITE3_HEADER "sqlite3.h" HINTS ${SQLITE3_INCLUDE_DIRS})
+ if(SQLITE3_HEADER)
+ file(STRINGS "${SQLITE3_HEADER}" _DEF_TMP REGEX "^#define SQLITE_VERSION +\\\"[^\\\"]+\\\"")
+ string (REGEX REPLACE ".*\\\"(([0-9]+[.]?)+).*" "\\1" SQLITE3_VERSION "${_DEF_TMP}")
+ endif (SQLITE3_HEADER)
+
if (NOT Sqlite3_FIND_QUIETLY)
- message(STATUS "Found Sqlite3: ${SQLITE3_LIBRARIES}")
+ message(STATUS "Found Sqlite3: ${SQLITE3_LIBRARIES} (found version \"${SQLITE3_VERSION}\")")
endif (NOT Sqlite3_FIND_QUIETLY)
else (SQLITE3_FOUND)
if (Sqlite3_FIND_REQUIRED)