Skip to content

Commit

Permalink
Add mdspan as a dependency and PDI as an optional dependency dependin…
Browse files Browse the repository at this point in the history
…g on a project variable
  • Loading branch information
tpadioleau committed Dec 16, 2021
1 parent 5cb7b95 commit d821cac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/DDCConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

include(CMakeFindDependencyMacro)

find_dependency(PDI REQUIRED COMPONENTS C)
find_dependency(mdspan REQUIRED)
if(@DDC_BUILD_PDI_WRAPPER@)
find_dependency(PDI REQUIRED COMPONENTS C)
endif()

include(${CMAKE_CURRENT_LIST_DIR}/DDCTargets.cmake)

Expand Down

0 comments on commit d821cac

Please sign in to comment.