<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    So where could I find a list of LLVM libraries so I can figure out
    which ones I actually need to link into my program?<br>
    Oscar Fuentes <ofv at wanadoo.es> writes:<br>
    <blockquote type="cite">
      <pre>Óscar Fuentes <<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">ofv at wanadoo.es</a>> writes:

><i> This patch *seems* to fix the problem (cmake regexps are not thoroughly
</i>><i> documented):
</i>><i>
</i>><i> --- a/cmake/modules/LLVM-Config.cmake
</i>><i> +++ b/cmake/modules/LLVM-Config.cmake
</i>><i> @@ -160,7 +160,7 @@ function(explicit_map_components_to_libraries out_libs)
</i>><i>      list(REVERSE expanded_components)
</i>><i>      list(APPEND processed ${lib})
</i>><i>      # Find the maximum index that doesn't have to be re-processed:
</i>><i> -    while(NOT "${expanded_components}" MATCHES "^${processed}.*" )
</i>><i> +    while(NOT "${expanded_components}" MATCHES "^${processed}(;)|(.*)")
</i>><i>        list(REMOVE_AT processed -1)
</i>><i>      endwhile()
</i>><i>      list(LENGTH processed cursor)
</i>
The patch above doesn't make any sense. This looks more correct:

--- a/cmake/modules/LLVM-Config.cmake
+++ b/cmake/modules/LLVM-Config.cmake
@@ -160,7 +160,7 @@ function(explicit_map_components_to_libraries out_libs)
     list(REVERSE expanded_components)
     list(APPEND processed ${lib})
     # Find the maximum index that doesn't have to be re-processed:
-    while(NOT "${expanded_components}" MATCHES "^${processed}.*" )
+    while(NOT "${expanded_components}" MATCHES "^${processed};|$")
       list(REMOVE_AT processed -1)
     endwhile()
     list(LENGTH processed cursor)</pre>
    </blockquote>
  </body>
</html>