@@ -568,8 +568,8 @@ create_reduced_dependency_handling_test_case(
568
568
-DTrilinos_DUMP_PACKAGE_DEPENDENCIES:BOOL =ON
569
569
-DTrilinos_DUMP_FORWARD_PACKAGE_DEPENDENCIES:BOOL =ON
570
570
PASS_REGULAR_EXPRESSION_ALL
571
- "-- BLAS_FORWARD_LIB_DEFINED_DEPENDENCIES: LAPACK.R ."
572
- "-- LAPACK_LIB_DEFINED_DEPENDENCIES: BLAS.R ."
571
+ "-- BLAS_FORWARD_LIB_DEFINED_DEPENDENCIES: LAPACK.O ."
572
+ "-- LAPACK_LIB_DEFINED_DEPENDENCIES: BLAS.O ."
573
573
"Explicitly enabled external packages/TPLs on input [(]by user[)]: 0"
574
574
"Explicitly disabled external packages/TPLs on input [(]by user or by default[)]: 0"
575
575
"-- Setting TPL_ENABLE_LAPACK=ON because DependsOnLAPACK has a required dependence on LAPACK"
@@ -599,11 +599,38 @@ create_reduced_dependency_handling_test_case(
599
599
"Final set of enabled external packages/TPLs: BLAS LAPACK 2"
600
600
"Processing enabled external package/TPL: BLAS [(]enabled explicitly, disable with -DTPL_ENABLE_BLAS=OFF[)]"
601
601
"Processing enabled external package/TPL: LAPACK [(]enabled by DependsOnLAPACK, disable with -DTPL_ENABLE_LAPACK=OFF[)]"
602
- "-- LAPACK_LIB_ENABLED_DEPENDENCIES: BLAS.R ."
602
+ "-- LAPACK_LIB_ENABLED_DEPENDENCIES: BLAS.O ."
603
603
"-- DependsOnLAPACK_LIB_ENABLED_DEPENDENCIES: LAPACK.R."
604
604
)
605
605
606
606
607
+ create_reduced_dependency_handling_test_case(
608
+ IndirectTplDependency_ExplicitDisableBLAS
609
+ ARGS
610
+ -DTrilinos_EXTRA_REPOSITORIES=extraRepos/DependsOnLAPACK
611
+ -DTPL_ENABLE_BLAS=OFF
612
+ -DTrilinos_ENABLE_DependsOnLAPACK=ON
613
+ -DTrilinos_DUMP_PACKAGE_DEPENDENCIES:BOOL =ON
614
+ -DTrilinos_DUMP_FORWARD_PACKAGE_DEPENDENCIES:BOOL =ON
615
+ PASS_REGULAR_EXPRESSION_ALL
616
+ "-- BLAS_FORWARD_LIB_DEFINED_DEPENDENCIES: LAPACK.O."
617
+ "-- LAPACK_LIB_DEFINED_DEPENDENCIES: BLAS.O."
618
+ "Explicitly enabled external packages/TPLs on input [(]by user[)]: 0"
619
+ "Explicitly disabled external packages/TPLs on input [(]by user or by default[)]: BLAS 1"
620
+ "-- Setting TPL_ENABLE_LAPACK=ON because DependsOnLAPACK has a required dependence on LAPACK"
621
+ "-- Setting DependsOnLAPACK_ENABLE_LAPACK=ON since Trilinos_ENABLE_DependsOnLAPACK=ON AND TPL_ENABLE_LAPACK=ON"
622
+ "Final set of enabled packages: DependsOnLAPACK 1"
623
+ "Final set of enabled external packages/TPLs: LAPACK 1"
624
+ "Final set of non-enabled external packages/TPLs: .* BLAS .*"
625
+ "-- LAPACK: No enabled dependencies"
626
+ "-- DependsOnLAPACK_LIB_ENABLED_DEPENDENCIES: LAPACK.R."
627
+ )
628
+ # NOTE: The above test ensures that the explicit disable of an upstream TPL
629
+ # does not implicitly disable a downstream TPL (see TriBITSPub/TriBITS#557).
630
+ # This was breaking use cases where people were enabling Netcdf but disabling
631
+ # HDF5 (and that is a valid configuration when Netcdf is built without HDF5).
632
+
633
+
607
634
#####################################################################
608
635
#
609
636
# Unit tests for dependency handling for full set of packages
@@ -827,16 +854,14 @@ create_dependency_handling_test_case(
827
854
"Explicitly enabled top-level packages on input .by user.: Zoltan 1"
828
855
"Explicitly disabled top-level packages on input .by user or by default.: Stokhos 1"
829
856
"Explicitly disabled external packages/TPLs on input .by user or by default.: MPI BLAS 2"
830
- "-- Setting TPL_ENABLE_LAPACK=OFF because LAPACK has a required library dependence on disabled package BLAS"
831
- "-- Setting TPL_ENABLE_SuperLUDist=OFF because SuperLUDist has a required library dependence on disabled package BLAS"
832
- "-- Setting TPL_ENABLE_SuperLU=OFF because SuperLU has a required library dependence on disabled package BLAS"
833
857
"-- Setting Trilinos_ENABLE_Teuchos=OFF because Teuchos has a required library dependence on disabled package BLAS"
834
858
"-- Setting Trilinos_ENABLE_Epetra=OFF because Epetra has a required library dependence on disabled package BLAS"
835
859
"-- Setting Trilinos_ENABLE_TrilinosFramework=ON"
836
860
"Final set of enabled top-level packages: TrilinosFramework Zoltan Shards 3"
837
861
"Final set of enabled packages: TrilinosFramework Zoltan Shards 3"
838
862
"Final set of non-enabled top-level packages: Teuchos RTOp Epetra Triutils Tpetra EpetraExt Stokhos Sacado Thyra Isorropia AztecOO Galeri Amesos Intrepid Ifpack ML Belos Stratimikos RBGen Phalanx Panzer 21"
839
863
"Final set of non-enabled packages: Teuchos RTOp Epetra Triutils Tpetra EpetraExt Stokhos Sacado ThyraCoreLibs ThyraGoodStuff ThyraCrazyStuff ThyraEpetra ThyraEpetraExt ThyraTpetra Thyra Isorropia AztecOO Galeri Amesos Intrepid Ifpack ML Belos Stratimikos RBGen Phalanx Panzer 27"
864
+ "Final set of enabled external packages/TPLs: 0"
840
865
)
841
866
# Above test makes sure that TRUE/FALSE also processed correctly for enable
842
867
# vars.
@@ -1127,8 +1152,6 @@ create_dependency_handling_test_case(
1127
1152
EnableZoltan_ZoltanEnableParMETIS_TplDisableParMETIS
1128
1153
ARGS -DTrilinos_ENABLE_Zoltan=ON -DZoltan_ENABLE_ParMETIS=ON -DTPL_ENABLE_ParMETIS=OFF
1129
1154
PASS_REGULAR_EXPRESSION_ALL
1130
- "-- Setting TPL_ENABLE_SuperLUDist=OFF because SuperLUDist has a required library dependence on disabled package ParMETIS"
1131
- "-- Setting TPL_ENABLE_SuperLU=OFF because SuperLU has a required library dependence on disabled package ParMETIS"
1132
1155
"-- NOTE: Setting Zoltan_ENABLE_ParMETIS=OFF which was ON because Zoltan has an optional library dependence on disabled package ParMETIS"
1133
1156
"Final set of enabled external packages/TPLs: 0"
1134
1157
)
0 commit comments