Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindSQLite3: Add SQLite::SQLite3 ALIAS #313

Merged
merged 2 commits into from
Oct 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cmake/FindSQLite3.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
# Variables defined by this module:
#
# SQLite3::SQLite3 Imported target for sqlite3
# SQLite::SQLite3 Imported target for sqlite3, for
# compatibility with upstream CMake
# SQLite3_FOUND System has sqlite3 library and headers

if(SQLite3_FIND_VERSION)
Expand Down Expand Up @@ -54,3 +56,8 @@ if(MSVC)
ign_import_target(SQLite3)

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)
endif()