Skip to content

Commit

Permalink
Fix debug compilation without CUDA under vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojnnes committed Jul 19, 2020
1 parent 12e9ff6 commit cc8bcc0
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/controllers/automatic_reconstruction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,7 @@ void AutomaticReconstructionController::RunSparseMapper() {
}

void AutomaticReconstructionController::RunDenseMapper() {
#ifndef CUDA_ENABLED
std::cout
<< std::endl
<< "WARNING: Skipping dense reconstruction because CUDA is not available."
<< std::endl;
return;
#endif // CUDA_ENABLED

#ifdef CUDA_ENABLED
CreateDirIfNotExists(JoinPaths(options_.workspace_path, "dense"));

for (size_t i = 0; i < reconstruction_manager_->Size(); ++i) {
Expand Down Expand Up @@ -330,7 +323,7 @@ void AutomaticReconstructionController::RunDenseMapper() {
#ifdef CGAL_ENABLED
mvs::DenseDelaunayMeshing(*option_manager_.delaunay_meshing, dense_path,
meshing_path);
#else // CGAL_ENABLED
#else // CGAL_ENABLED
std::cout << std::endl
<< "WARNING: Skipping Delaunay meshing because CGAL is "
"not available."
Expand All @@ -339,7 +332,13 @@ void AutomaticReconstructionController::RunDenseMapper() {
#endif // CGAL_ENABLED
}
}
#else // CUDA_ENABLED
std::cout << std::endl
<< "WARNING: Skipping dense reconstruction because CUDA is not "
"available."
<< std::endl;
return;
#endif // CUDA_ENABLED
}
}


} // namespace colmap

0 comments on commit cc8bcc0

Please sign in to comment.