Skip to content

Commit

Permalink
One more logic fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
KineticTheory committed Sep 15, 2021
1 parent 2af330c commit c58faee
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/diagnostics/draco_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ DracoInfo::DracoInfo()
else if (build_type == std::string("DEBUG"))
fc_flags += CMAKE_Fortran_FLAGS_DEBUG;
#endif
if (cuda) {
cuda_compiler = CMAKE_CUDA_COMPILER;
cuda_flags = CMAKE_CUDA_FLAGS;
if (build_type == std::string("RELEASE"))
cuda_flags += CMAKE_CUDA_FLAGS_RELEASE;
else if (build_type == std::string("DEBUG"))
cuda_flags += CMAKE_CUDA_FLAGS_DEBUG;
}
#ifdef CMAKE_CUDA_COMPILER
cuda_compiler = CMAKE_CUDA_COMPILER;
cuda_flags = CMAKE_CUDA_FLAGS;
if (build_type == std::string("RELEASE"))
cuda_flags += CMAKE_CUDA_FLAGS_RELEASE;
else if (build_type == std::string("DEBUG"))
cuda_flags += CMAKE_CUDA_FLAGS_DEBUG;
#endif
}

//------------------------------------------------------------------------------------------------//
Expand Down

0 comments on commit c58faee

Please sign in to comment.