]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
Maintain aliases for product names (med-fichier as alias for medfile) vsr/name_aliases
authorvsr <vsr@opencascade.com>
Fri, 19 Mar 2021 07:43:23 +0000 (10:43 +0300)
committervsr <vsr@opencascade.com>
Fri, 19 Mar 2021 07:43:23 +0000 (10:43 +0300)
cmake/FindSalomeMEDFile.cmake
cmake/SalomeMacros.cmake

index bb5e0de2190f7aff76490ddaaafcafc19b458b8e..667638934460d16dcdba1a7a4c0e656923ccbc91 100644 (file)
@@ -24,7 +24,7 @@
 #  !! Please read the generic detection procedure in SalomeMacros.cmake !!
 #
 
-SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(MEDFile MEDFILE_INCLUDE_DIRS 1)
+SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(MEDFile MEDFILE_INCLUDE_DIRS 1 NAMES med-fichier)
 #MARK_AS_ADVANCED()
 
 SET(MED_INT_IS_LONG FALSE) # fallback value
index 33078a936556b0642ecf2a84f7b8f3a3d9ddb42b..e1df8cee4596c2d1fced74e36a2b08a6d6208efa 100644 (file)
@@ -426,12 +426,14 @@ MACRO(SALOME_FIND_PACKAGE englobPkg stdPkg mode)
       IF(${englobPkg}_FIND_COMPONENTS)
         FIND_PACKAGE(${stdPkg} ${${englobPkg}_FIND_VERSION} ${_tmp_exact} 
               NO_MODULE ${_tmp_quiet} ${_tmp_req} COMPONENTS ${${englobPkg}_FIND_COMPONENTS}
+              NAMES ${stdPkg} ${SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS_NAMES}
               PATH_SUFFIXES "salome_adm/cmake_files" "adm_local/cmake_files" "adm/cmake"
               NO_CMAKE_BUILDS_PATH NO_CMAKE_PACKAGE_REGISTRY NO_CMAKE_SYSTEM_PACKAGE_REGISTRY NO_CMAKE_SYSTEM_PATH
                 NO_SYSTEM_ENVIRONMENT_PATH)
       ELSE()
         FIND_PACKAGE(${stdPkg} ${${englobPkg}_FIND_VERSION} ${_tmp_exact} 
               NO_MODULE ${_tmp_quiet} ${_tmp_req}
+              NAMES ${stdPkg} ${SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS_NAMES}
               PATH_SUFFIXES "salome_adm/cmake_files" "adm_local/cmake_files" "adm/cmake"
               NO_CMAKE_BUILDS_PATH NO_CMAKE_PACKAGE_REGISTRY NO_CMAKE_SYSTEM_PACKAGE_REGISTRY NO_CMAKE_SYSTEM_PATH
                  NO_SYSTEM_ENVIRONMENT_PATH)
@@ -495,7 +497,7 @@ MACRO(SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS pkg referenceVariable upCount)
   ##
   ## 0. Initialization
   ##
-  PARSE_ARGUMENTS(SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS "ENVVAR" "" ${ARGN})
+  PARSE_ARGUMENTS(SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS "ENVVAR;NAMES" "" ${ARGN})
   
   # Package name, upper case
   STRING(TOUPPER ${pkg} pkg_UC)