]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fixing bug introduced by AKL + better doc on macro
authorabn <adrien.bruneton@cea.fr>
Fri, 3 Jul 2015 13:02:23 +0000 (15:02 +0200)
committerabn <adrien.bruneton@cea.fr>
Fri, 3 Jul 2015 13:02:23 +0000 (15:02 +0200)
SALOME_FIND_PACKAGE_DETECT_CONFLICT

salome_adm/cmake_files/FindSalomeGraphviz.cmake
salome_adm/cmake_files/SalomeMacros.cmake

index 8a793cb1a67ca071be5160aac85a35ef19caf5cf..f41b1eae9f424f2cb1e82e230fa5620861e470b4 100644 (file)
@@ -24,7 +24,7 @@
 #  !! Please read the generic detection procedure in SalomeMacros.cmake !!
 #
 
-SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(Graphviz GRAPHVIZ_EXECUTABLE GRAPHVIZ_LIBRARIES GRAPHVIZ_INCLUDE_DIRS 2)
+SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(Graphviz GRAPHVIZ_EXECUTABLE 2)
 MARK_AS_ADVANCED(GRAPHVIZ_EXECUTABLE GRAPHVIZ_LIBRARIES GRAPHVIZ_INCLUDE_DIRS)
 
 IF(GRAPHVIZ_FOUND)
index 898b09531611d36ce1979dab6296abd9aedc61c0..7ed262265b68421ec63967f72a07d5c406c49375 100644 (file)
@@ -444,8 +444,12 @@ ENDMACRO()
 # retrieve the package root directory (xxx_ROOT_DIR)
 #    upCount          : number of times we have to go up from the path <referenceVariable>
 # to obtain the package root directory.
+# If this is a path to a file, going up one time gives the directory containing the file
+# going up 2 times gives the parent directory.
 #   
-# For example:  SALOME_FIND_PACKAGE_DETECT_CONFLICTS(SWIG SWIG_EXECUTABLE 2) 
+# For example:  SALOME_FIND_PACKAGE_DETECT_CONFLICTS(SWIG SWIG_EXECUTABLE 2)
+#     with SWIG_EXECUTABLE set to '/usr/bin/swig'
+#     will produce '/usr' 
 #
 # Generic detection (and conflict check) procedure for package XYZ:
 # 1. Load a potential env variable XYZ_ROOT_DIR as a default choice for the cache entry XYZ_ROOT_DIR