Skip to content

Commit

Permalink
Correctly find dependencies when installed
Browse files Browse the repository at this point in the history
  • Loading branch information
jcortial-safran committed Apr 19, 2024
1 parent b338fee commit 12c3849
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 12c3849

Please sign in to comment.