Support CMake 4.0 SQLite target

This commit is contained in:
faumaray committed 2026-07-29 23:31:30 +03:00
1 parent cbb178d83d
commit d456257d0c
1 file changed
+6
+6
View File
@@ -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