diff --git a/cmake/FindSQLite3.cmake b/cmake/FindSQLite3.cmake index 8fd39a78..9c30e1b5 100644 --- a/cmake/FindSQLite3.cmake +++ b/cmake/FindSQLite3.cmake @@ -59,5 +59,7 @@ endif() # Workaround for https://github.com/gazebosim/gz-cmake/issues/312 if(TARGET SQLite3::SQLite3 AND NOT TARGET SQLite::SQLite3) - add_library(SQLite::SQLite3 ALIAS SQLite3::SQLite3) + add_library(SQLite::SQLite3 INTERFACE IMPORTED) + # Equivalent to target_link_libraries INTERFACE, but compatible with CMake 3.10 + set_target_properties(SQLite::SQLite3 PROPERTIES INTERFACE_LINK_LIBRARIES SQLite3::SQLite3) endif()