-
Notifications
You must be signed in to change notification settings - Fork 767
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
Generate GTSAM_UNSTABLE CMake exports #906
Conversation
@berndpfrommer any news on this? |
Funny, I was just typing as I just completed the following test:
|
Amazing!! |
Almost, almost. Here's a gotcha.
But libgtsam-unstable-dev does not have any cmake config files:
I suspect that the problem is with the CMakeLists.txt files: the libgtsam-dev target installs also the cmake config files for the libgtsam-unstable-dev target. |
nope, not a CMakeLists.txt error, but actually a bug in my packaging files |
Fixed the packaging and everything is working. Without a find_package(GTSAM_UNSTABLE), the old-style INCLUDE_DIR variable is empty:
And the target include properties also don't have "unstable" in them. The build of the user executable fails as it should because it can't find the unstable library. Adding the find_package(UNSTABLE) leads to successful compilation. OK, from my end this commit is good to go. Once this has been merged into devel I will fix the packaging bug as well. |
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.
LGTM :) Thanks Varun!
Fixes #881
This will require a user to now do
find_package(GTSAM_UNSTABLE)
if they wish to useGTSAM_UNSTABLE
features.