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