-
Notifications
You must be signed in to change notification settings - Fork 577
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
Tribits enabling more packages than necessary. #2011
Comments
@bartgol Is this properly just a TriBITS issue? If so, I'll close this issue and direct further discussion to TriBITSPub/TriBITS#243 . Thanks! |
Maybe? I've never dived deep into tribits, so I'm not 100% sure. More likely than not though. |
@bartgol On second thought, it might be better to leave this Trilinos issue open, because Trilinos won't see the fix until TriBITS fixes it and snapshots into Trilinos. Please do continue discussion on the TriBITS issue, though. Thanks! |
As I mentioned in TriBITSPub/TriBITS#243, this unfortunately is a long known defect (see TriBITSPub/TriBITS#56). As mentioned in TriBITSPub/TriBITS#56, it could be quite difficult to update all of the TriBITS projects for this change. |
This issue has had no activity for 365 days and is marked for closure. It will be closed after an additional 30 days of inactivity. |
FYI: This will actually get fixed finally in the next couple of mounts as part of TriBITSPub/TriBITS#367 |
@trilinos/tribits
Expectations
I think the packages listed in the
TEST_REQUIRED_DEP_PACKAGES
list inside the package'sDependencies.cmake
file should only be enabled if the testing for that package is enabled.Current Behavior
It appears that the packages in the list
TEST_REQUIRED_DEP_PACKAGES
are currently enabled, regarldess of whether the testing is on for the package.Motivation and Context
I am trying to build a version of trilinos without the Epetra stack, but some packages list Epetra in their
TEST_REQUIRED_DEP_PACKAGES
variable, in theDependencies.cmake
file. This variables is apparently treated the same asLIB_REQUIRED_DEP_PACKAGES
when it comes to enabling upstream packages, regardless of the build configuration (in particular, regardless of whether tests are enabled).Definition of Done
Anything that does not cause test-related dependencies to be built when tests are not enabled.
Possible Solution
Inside the
TRIBITS_ENABLE_UPSTREAM_SE_PACKAGES
macro, guard the lineswith something like
IF(${PACKAGE_NAME}_ENABLE_TESTS} OR ${PROJECT_NAME}_ENABLE_TESTS})
, or something like that.Steps to Reproduce
Configure script:
(replacing SOURCE_DIR and INSTALL_DIR with proper directories).
Your Environment
Additional Information
I am not enabling Epetra, but Tempus causes Epetra to be enabled, even if Epetra is only required for the testing. I can confirm the cause of the problem are required test packages, since I see the log message
-- Setting Trilinos_ENABLE_Epetra=ON because Tempus has a required dependence on Epetra
and Tempus depends on Epetra only for the tests.
The text was updated successfully, but these errors were encountered: