]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
add find_package with xxxConfig.cmake github/pr-1-add_find_package 7/head
authorwrx <wrxfight66@gmail.com>
Thu, 4 Jul 2024 10:24:07 +0000 (18:24 +0800)
committerwrx <wrxfight66@gmail.com>
Thu, 4 Jul 2024 10:24:07 +0000 (18:24 +0800)
cmake/SalomeMacros.cmake

index bb0ab419b0643dc4f17193ddc8a7c6e5e32145a7..2b7a36d958c2dcb652ec32547fd69a640aa902cb 100644 (file)
@@ -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()