Provide CMake package modules in install tree
Teach the Makefile build system to generate and install CMake modules LLVMConfig.cmake and LLVMConfigVersion.cmake so that applications that build with CMake can use 'find_package(LLVM)' even when LLVM is not built with CMake. These modules tell such applications about available LLVM libraries and their dependencies. Run llvm-config to generate the list of libraries and use the results of llvm-build to generate the library dependencies. Use sed to perform substitutions in the LLVMConfig.cmake.in and LLVMConfigVersion.cmake.in sources that our CMake build system uses. Teach the Makefile build system to generate the LLVMExports.cmake file with content similar to that produced by the CMake install(EXPORT) command. Extend llvm-build with an option to generate the library dependencies fragment for this file. Contributed by Brad King. llvm-svn: 201053
Showing
- llvm/Makefile 2 additions, 2 deletionsllvm/Makefile
- llvm/Makefile.rules 13 additions, 5 deletionsllvm/Makefile.rules
- llvm/cmake/Makefile 12 additions, 0 deletionsllvm/cmake/Makefile
- llvm/cmake/modules/Makefile 106 additions, 0 deletionsllvm/cmake/modules/Makefile
- llvm/utils/llvm-build/llvmbuild/main.py 40 additions, 0 deletionsllvm/utils/llvm-build/llvmbuild/main.py
Loading
Please register or sign in to comment