Skip to content

Commit

Permalink
precompile tensorbase
Browse files Browse the repository at this point in the history
  • Loading branch information
hugary1995 committed Feb 8, 2025
1 parent bf071db commit 44a513f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/neml2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ target_link_libraries(neml2_jit PUBLIC neml2_misc)
# libneml2_tensor
neml2_add_submodule(neml2_tensor SHARED tensors)
target_link_libraries(neml2_tensor PUBLIC neml2_jit)
target_precompile_headers(neml2_tensor PRIVATE
${NEML2_SOURCE_DIR}/include/neml2/tensors/TensorBase.h
${NEML2_SOURCE_DIR}/include/neml2/tensors/TensorBaseImpl.h
)

# libneml2_base
neml2_add_submodule(neml2_base SHARED base)
Expand Down

0 comments on commit 44a513f

Please sign in to comment.