]> granicus.if.org Git - clang/commitdiff
Revert "[CMake] Fix an issue building out-of-tree introduced in r272200"
authorChris Bieneman <beanz@apple.com>
Thu, 9 Jun 2016 17:24:16 +0000 (17:24 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 9 Jun 2016 17:24:16 +0000 (17:24 +0000)
This reverts r272275. This actually wasn't the right way to fix the problem. The correct solution is in r272279.

Applying the fix to LLVM as done in r272279, means this fix will get picked up by all projects building out of tree using LLVM's CMake modules. As opposed to the fix I had in r272275, which would require each project to change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272280 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index ae955008635eed9a825dda5216e0277336b213c1..fce82295508bb4f7ea0ba9bd706fbdedbc6899bc 100644 (file)
@@ -56,8 +56,6 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
   list(GET CONFIG_OUTPUT 4 LLVM_OBJ_ROOT)
   list(GET CONFIG_OUTPUT 5 MAIN_SRC_DIR)
 
-  get_filename_component(LLVM_TOOLS_INSTALL_DIR ${TOOLS_BINARY_DIR} NAME)
-
   if(NOT MSVC_IDE)
     set(LLVM_ENABLE_ASSERTIONS ${ENABLE_ASSERTIONS}
       CACHE BOOL "Enable assertions")