Skip to content

Commit

Permalink
Adds a guard for a spin example that depends on quest
Browse files Browse the repository at this point in the history
The dependency is only for the STL file reader.
  • Loading branch information
kennyweiss committed Dec 29, 2022
1 parent 8d7c49a commit ff0c480
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/axom/spin/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/axom/spin/examples/spin_bvh_two_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<mint::SINGLE_SHAPE>;
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit ff0c480

Please sign in to comment.