From ff0c4808e01b31885ddc34db7fded7eea075496e Mon Sep 17 00:00:00 2001 From: Kenneth Weiss Date: Wed, 28 Dec 2022 19:48:04 -0800 Subject: [PATCH] Adds a guard for a spin example that depends on quest The dependency is only for the STL file reader. --- src/axom/spin/examples/CMakeLists.txt | 3 ++- src/axom/spin/examples/spin_bvh_two_pass.cpp | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/axom/spin/examples/CMakeLists.txt b/src/axom/spin/examples/CMakeLists.txt index 4ecc7b19d0..c53a4f3654 100644 --- a/src/axom/spin/examples/CMakeLists.txt +++ b/src/axom/spin/examples/CMakeLists.txt @@ -22,7 +22,8 @@ blt_add_executable( FOLDER axom/spin/examples ) -if (RAJA_FOUND AND UMPIRE_FOUND) +# Note: The following example uses quest to read in an STL file +if (AXOM_ENABLE_QUEST AND RAJA_FOUND AND UMPIRE_FOUND) blt_add_executable( NAME spin_bvh_two_pass_ex diff --git a/src/axom/spin/examples/spin_bvh_two_pass.cpp b/src/axom/spin/examples/spin_bvh_two_pass.cpp index 8e690aed5a..911953f478 100644 --- a/src/axom/spin/examples/spin_bvh_two_pass.cpp +++ b/src/axom/spin/examples/spin_bvh_two_pass.cpp @@ -27,7 +27,6 @@ namespace mint = axom::mint; namespace primal = axom::primal; namespace spin = axom::spin; namespace slic = axom::slic; -namespace quest = axom::quest; using IndexType = axom::IndexType; using UMesh = mint::UnstructuredMesh; @@ -406,7 +405,7 @@ int main(int argc, char** argv) // Read file SLIC_INFO("Reading file: '" << args.file_name << "'...\n"); { - quest::STLReader reader; + axom::quest::STLReader reader; reader.setFileName(args.file_name); reader.read();