Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly find dependencies when installed #261

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmake/config/mmgConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
include(CMakeFindDependencyMacro)

# Allows us to use all .cmake files in this directory
# required for `find_package({SCOTCH,VTK}) to work.
# required for `find_dependency({SCOTCH,VTK}) to work.
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_LIST_DIR}")

find_package(SCOTCH)
find_package(VTK)
find_dependency(SCOTCH)
find_dependency(VTK)

if (NOT TARGET Mmg::mmg )
include(${CMAKE_CURRENT_LIST_DIR}/MmgTargets.cmake)
Expand Down
Loading