From: wrx Date: Thu, 4 Jul 2024 10:24:07 +0000 (+0800) Subject: add find_package with xxxConfig.cmake X-Git-Tag: V9_13_0rc1~1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5cd4e447fa87d553c6dd954c4ffacfb6fd843b61;p=tools%2Fconfiguration.git add find_package with xxxConfig.cmake --- diff --git a/cmake/SalomeMacros.cmake b/cmake/SalomeMacros.cmake index bb0ab41..2b7a36d 100644 --- a/cmake/SalomeMacros.cmake +++ b/cmake/SalomeMacros.cmake @@ -449,6 +449,9 @@ MACRO(SALOME_FIND_PACKAGE englobPkg stdPkg mode) ELSE() FIND_PACKAGE(${stdPkg} ${${englobPkg}_FIND_VERSION} ${_tmp_exact} MODULE ${_tmp_quiet} ${_tmp_req}) + IF(NOT ${stdPkg}_FOUND) + FIND_PACKAGE(${stdPkg} CONFIG) + ENDIF() ENDIF() ELSE()