Hi llvm-dev,<div><br></div><div>Attached are two patches for the LLVM cmake build system.</div><div><br></div><div>The first one adds static runtimes (MT and MTd) to the list of runtimes for the MSVC build.</div><div><br></div>
<div>The second one makes it possible to use llvm_config in external projects.</div><div>In this patch I took the liberty of changing the format of LLVMLibDeps.cmake to define a single variable LLVM_LIB_DEPS instead of MSVC_LIB_DEPS_*.  LLVM_LIB_DEPS contains the list of libraries and dependencies in the following form:</div>
<div><br></div><div><div><div>set ( LLVM_LIB_DEPS</div><div> * <lib-name> <dependency 1> ... <dependency n> </div><div> ...</div><div>  )</div><div><br></div><div>Here '*' is used as a delimiter to specify where each library dependency list starts</div>
<div><br></div><div>This allows to get both the list of libraries and dependency information from one source. It is done in the explicit_map_components_to_libraries function which uses LLVM_LIB_DEPS to populate llvm_libs and MSVC_LIB_DEPS_* if they are not defined thus allowing external use.</div>
<div><br></div><div>Best regards,</div><div>Victor</div><div><br></div></div></div>