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

Document disabling tests and examples in INSTALL.md #1918

Merged

Conversation

spacey-sooty
Copy link
Contributor

When you have gtsam as a dependency in CMake these would get built. This doesn't make sense and increases build times, allowing them to be disabled fixes this.

@spacey-sooty spacey-sooty force-pushed the allow-disabling-tests-and-examples branch from 6b50276 to 2f2e557 Compare December 6, 2024 17:10
When you have gtsam as a dependency in CMake these would get built. This
doesn't make sense and increases build times, allowing them to be
disabled fixes this.

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
@spacey-sooty spacey-sooty force-pushed the allow-disabling-tests-and-examples branch from 2f2e557 to ddd95f4 Compare December 6, 2024 17:13
@dellaert
Copy link
Member

dellaert commented Dec 6, 2024

I think there was already a flag for building examples or not. Also, that flag shows the naming convention for compile time flags :-)

@varunagrawal
Copy link
Collaborator

Hi @spacey-sooty. You can set the following CMake variables to OFF to disable building tests and examples.

GTSAM_BUILD_EXAMPLES_ALWAYS=OFF
GTSAM_BUILD_TESTS=OFF

I agree that building examples takes a long time, so I have them disabled myself when compiling.

@spacey-sooty
Copy link
Contributor Author

Hi @spacey-sooty. You can set the following CMake variables to OFF to disable building tests and examples.

GTSAM_BUILD_EXAMPLES_ALWAYS=OFF

GTSAM_BUILD_TESTS=OFF

I agree that building examples takes a long time, so I have them disabled myself when compiling.

I couldn't find this at all when searching through the documentation. Mentioning in there would be good.

@varunagrawal
Copy link
Collaborator

Yeah I agree. We have a lot of work to do wrt the docs. :)

@varunagrawal
Copy link
Collaborator

@spacey-sooty would you be willing to update this PR to instead make it a docs update with the flags above? I can approve and merge it then.

@spacey-sooty
Copy link
Contributor Author

Where would I find the docs in the repo?

@varunagrawal
Copy link
Collaborator

varunagrawal commented Dec 9, 2024

I would recommend adding it to the INSTALL.md file since it has other notes about CMake flags.

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
@spacey-sooty
Copy link
Contributor Author

@varunagrawal I've pushed a new commit documenting it, my IDE has also caught some unused whitespace and fixed that but I can revert that if needed

@spacey-sooty spacey-sooty changed the title [build] Allow disabling tests and examples Document disabling tests and examples in INSTALL.md Dec 11, 2024
@varunagrawal
Copy link
Collaborator

Thank you so much!

@varunagrawal varunagrawal merged commit d1840e1 into borglab:develop Dec 11, 2024
33 checks passed
@spacey-sooty spacey-sooty deleted the allow-disabling-tests-and-examples branch December 13, 2024 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants