From 115be2de1526a0fe0e8e282a3fe056f1a07e7e6d Mon Sep 17 00:00:00 2001 From: Andrei Astafev Date: Tue, 13 Feb 2024 14:20:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=81=D0=B8=D0=BA=D0=B0=20SQLite3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FindSQLite3.cmake | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/FindSQLite3.cmake b/FindSQLite3.cmake index 119659c..d75340e 100644 --- a/FindSQLite3.cmake +++ b/FindSQLite3.cmake @@ -1,8 +1,3 @@ -if(${CMAKE_VERSION} VERSION_GREATER "3.13.99") - return() -endif() - -# Compatibility mode set(SQLite3_PREFIX "" CACHE PATH "The path to the prefix of SQLite3 installation") find_path(SQLite3_INCLUDE_DIR NAMES sqlite3.h @@ -22,14 +17,13 @@ find_library(SQLite3_LIBRARIES NAMES sqlite3 ) if(SQLite3_INCLUDE_DIR AND SQLite3_LIBRARIES AND NOT TARGET SQLite::SQlite3) - get_filename_component(SQlite3_LIBRARY_DIR ${SQLite3_LIBRARIES} PATH) + get_filename_component(SQLite3_LIBRARY_DIR ${SQLite3_LIBRARIES} PATH) set(SQLite3_FOUND TRUE) set(SQLite3_INCLUDE_DIRS ${SQLite3_INCLUDE_DIR}) - add_library(SQLite::SQLite3 UNKNOWN IMPORTED) + add_library(SQLite::SQLite3 INTERFACE IMPORTED) set_target_properties(SQLite::SQLite3 PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${SQLite3_INCLUDE_DIR}" INTERFACE_LINK_LIBRARIES "${SQLite3_LIBRARIES}" - IMPORTED_LOCATION "${SQLite3_LIBRARY}" ) endif()