From 9634b3a53901ed4f730e6c0663493db2c87ba98a Mon Sep 17 00:00:00 2001 From: Julien Cortial Date: Fri, 19 Apr 2024 16:23:52 +0200 Subject: [PATCH] Correctly find dependencies when installed --- cmake/config/mmgConfig.cmake.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/config/mmgConfig.cmake.in b/cmake/config/mmgConfig.cmake.in index bbfdff199..567b55c55 100644 --- a/cmake/config/mmgConfig.cmake.in +++ b/cmake/config/mmgConfig.cmake.in @@ -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)