From d456257d0cb6ed01e55aefa445c4d9b55e98353e Mon Sep 17 00:00:00 2001 From: faumaray Date: Wed, 29 Jul 2026 23:31:30 +0300 Subject: [PATCH] Support CMake 4.0 SQLite target --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a4c6542..f24aeab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -148,6 +148,12 @@ endif() find_package(Threads REQUIRED) find_package(OpenSSL REQUIRED) find_package(SQLite3 REQUIRED) +# FindSQLite3 exposed only SQLite::SQLite3 before CMake 4.3. Keep the +# component's preferred target name available across the supported CMake 4.x +# range; an alias created inside sibling VoidLibrary is not visible here. +if(NOT TARGET SQLite3::SQLite3 AND TARGET SQLite::SQLite3) + add_library(SQLite3::SQLite3 ALIAS SQLite::SQLite3) +endif() find_package(TBB REQUIRED) target_link_libraries(EchoionCore