llvm-6502/cmake/modules
Chris Bieneman 8d539b5519 [CMake] Cleanup tools/CMakeLists.txt to take advantage of the auto-registration that was already partially working.
Summary:
This change re-lands r241621, with an additional fix that was required to allow tool sources to live outside the llvm checkout. It also no longer renames LLVM_EXTERNAL_*_SOURCE_DIR. This change was reverted in r241663, because it renamed several variables of the format LLVM_EXTERNAL_*_* to LLVM_TOOL_*_*.

Original Summary:
The tools CMakeLists file already had implicit tool registration, but there were a few things off about it that needed to be altered to make it work. This change addresses all that. The changes in this patch are:

* factored out canonicalizing tool names from paths to CMake variables * removed the LLVM_IMPLICIT_PROJECT_IGNORE mechanism in favor of LLVM_EXTERNAL_${nameUPPER}_BUILD which I renamed to LLVM_TOOL_${nameUPPER}_BUILD because it applies to internal and external tools
* removed ignore_llvm_tool_subdirectory() in favor of just setting LLVM_TOOL_${nameUPPER}_BUILD to Off
* Added create_llvm_tool_options() to resolve a bug in add_llvm_external_project() - the old LLVM_EXTERNAL_${nameUPPER}_BUILD would not work on a clean CMake directory because the option could be created after it was set in code.
* Removed all but the minimum required calls to add_llvm_external_project from tools/CMakeLists.txt

Differential Revision: http://reviews.llvm.org/D10665

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242059 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-13 20:23:15 +00:00
..
AddLLVM.cmake [CMake] Cleanup tools/CMakeLists.txt to take advantage of the auto-registration that was already partially working. 2015-07-13 20:23:15 +00:00
AddLLVMDefinitions.cmake
AddOCaml.cmake [cmake] [OCaml] Make ocamldoc targets depend on output files 2015-06-07 19:22:22 +00:00
AddSphinxTarget.cmake Make message about building sphinx documentation with CMake more 2014-08-14 11:57:16 +00:00
CheckAtomic.cmake Repair cmake libatomic check. 2015-06-16 14:00:01 +00:00
ChooseMSVCCRT.cmake
CMakeLists.txt [cmake] Start making LLVM_LIBDIR_SUFFIX effective by adding it to 2014-12-29 11:16:19 +00:00
CrossCompile.cmake Refactoring CMake CrossCompile module. 2015-03-12 17:33:34 +00:00
FindOCaml.cmake [OCaml] [cmake] Add CMake buildsystem for OCaml. 2014-12-01 19:50:23 +00:00
FindSphinx.cmake
GetHostTriple.cmake
GetSVN.cmake cmake: Make SVNVersion.inc work on Windows if svn is called svn.bat. 2014-12-10 00:10:21 +00:00
HandleLLVMOptions.cmake Spelling fixes in comments. 2015-06-24 21:46:53 +00:00
HandleLLVMStdlib.cmake Teach the LLVM CMake build how to explicitly use libc++abi when using 2015-03-07 10:30:34 +00:00
LLVM-Config.cmake Add targets to cmake for specific target components. 2015-04-20 18:22:05 +00:00
LLVMConfig.cmake.in [CMake] Uniquify LLVM_ABI_BREAKING_CHECKS. It reverts r233784, "[CMake] Cache in LLVMConfig.cmake." 2015-04-13 04:54:12 +00:00
LLVMConfigVersion.cmake.in
LLVMProcessSources.cmake Teach llvm_add_library() to find include dirs. 2015-02-10 05:04:37 +00:00
Makefile [CMake] Make the CMake files (LLVMConfig.cmake and LLVMExports.cmake) 2015-06-30 17:16:39 +00:00
TableGen.cmake [CMake] Bug 23468 - LLVM_OPTIMIZED_TABLEGEN does not work with Visual Studio 2015-05-29 18:34:41 +00:00
VersionFromVCS.cmake