Skip to content

Commit

Permalink
include cabana header if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cwsmith committed Jan 22, 2025
1 parent c13bae6 commit f337d86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ target_include_directories(meshFields
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
target_link_libraries(meshFields INTERFACE Omega_h::omega_h)
target_compile_definitions(meshFields INTERFACE ENABLE_CABANA)
if(Kokkos_ENABLE_CUDA)
target_compile_options(meshFields INTERFACE "--expt-relaxed-constexpr")
endif()
Expand Down
3 changes: 3 additions & 0 deletions src/MeshField_ShapeField.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#define MESHFIELD_SHAPEFIELD_HPP

#include "KokkosController.hpp"
#ifdef MESHFIELDS_ENABLE_CABANA
#include "CabanaController.hpp"
#endif
#include "MeshField_Field.hpp"
#include "MeshField_Shape.hpp"
#include <type_traits> //decltype
Expand Down

0 comments on commit f337d86

Please sign in to comment.