Skip to content

Commit e1250f2

Browse files
authored
chore(ci): fix missing SQLite3::SQLite3 target in cpp-static-test (#4276)
In e44eea5 I changed the SQLite3 target for newer cmake but I also needed to update cpp-static-test to handle it. The call to `find_depdencny_sqlite(SQLite3)` in `AdbcDriverSQLiteConfig.cmake` creates the now-deprecated SQLite::SQLite3 target so an alias is needed. See failing CI: https://github.com/apache/arrow-adbc/actions/runs/25006855596/job/73231969203?pr=4273
1 parent 74ddd3c commit e1250f2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

c/integration/static_test/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ find_package(AdbcDriverPostgreSQL REQUIRED)
3030
find_package(AdbcDriverSQLite REQUIRED)
3131
find_package(AdbcDriverSnowflake REQUIRED)
3232

33+
# Alias SQLite::SQLite3 to SQLite3::SQLite3 if needed. SQLite::SQLite3 is
34+
# deprecated in CMake < 4.3. See
35+
# https://cmake.org/cmake/help/latest/module/FindSQLite3.html.
36+
if(NOT TARGET SQLite3::SQLite3)
37+
add_library(SQLite3::SQLite3 ALIAS SQLite::SQLite3)
38+
endif()
3339
find_package(fmt REQUIRED)
3440
find_package(nanoarrow REQUIRED)
3541

0 commit comments

Comments
 (0)