-
Notifications
You must be signed in to change notification settings - Fork 31
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.cmake shadows a module with the same name in upstream CMake with differnt target name #312
Comments
… upstream FindSQLite3 Workaround for gazebosim#312 .
So for
We should probably update the logic to take into account that I agree that the cross-talk is definitely unintended and a bug in this case. |
… upstream FindSQLite3 Workaround for gazebosim#312 . Signed-off-by: Silvio <[email protected]>
In #313 I provided a minimally invasive change. The tricky aspect is that (as far as I know) once you shadowed a A long term plan could for gz-cmake3 could be to bump the minimum cmake version to 3.14 or 3.16, invert the logic added in traversaro@a61bfc5, i.e. make |
Workaround for #312. Improves compatibility with CMake's upstream FindSQLite3 module. Signed-off-by: Silvio <[email protected]> Co-authored-by: Steve Peters <[email protected]>
Since Focal is on 3.16, we can probably deprecate the old functionality. |
We have bumped the minimum cmake version to 3.22.1 in |
Since CMake 3.14, CMake provides a
find_package(SQLite3 REQUIRED)
module that is used if one callsfind_package(SQLite3 REQUIRED)
, that defines theSQLite::SQLite3
imported target. If one callsfind_package(ignition-cmake2 REQUIRED)
beforefind_package(SQLite3 REQUIRED)
, thefind_package(SQLite3 REQUIRED)
of ign-cmake is used instead, that definesSQLite3::SQLite3
instead.This can leads to tricky issues, such as when
find_package(VTK)
is called afterfind_package(gazebo)
(see traversaro/vtk-gazebo-cross-talking#1).Environment
Binary upstream from Ubuntu 22.04 2.10.0-2
Description
find_package(ignition-cmake2 REQUIRED)
,find_package(SQLite3 REQUIRED)
does not provideSQLite::SQLite3
find_package(ignition-cmake2 REQUIRED)
is called before,find_package(SQLite3 REQUIRED)
should provideSQLite::SQLite3
Steps to reproduce
See traversaro/vtk-gazebo-cross-talking#1 and https://github.com/traversaro/vtk-gazebo-cross-talking/blob/main/.github/workflows/cmake.yml .
Output
The text was updated successfully, but these errors were encountered: