[llvm] r283698 - [CMake] Correct configuration order of the sub-projects based on ther dependancies

Eric Fiselier via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 9 13:38:29 PDT 2016


Author: ericwf
Date: Sun Oct  9 15:38:29 2016
New Revision: 283698

URL: http://llvm.org/viewvc/llvm-project?rev=283698&view=rev
Log:
[CMake] Correct configuration order of the sub-projects based on ther dependancies

Modified:
    llvm/trunk/projects/CMakeLists.txt

Modified: llvm/trunk/projects/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/projects/CMakeLists.txt?rev=283698&r1=283697&r2=283698&view=diff
==============================================================================
--- llvm/trunk/projects/CMakeLists.txt (original)
+++ llvm/trunk/projects/CMakeLists.txt Sun Oct  9 15:38:29 2016
@@ -22,11 +22,11 @@ if(${LLVM_BUILD_RUNTIME})
   # MSVC isn't quite working with libc++ yet, disable it until issues are
   # fixed.
   if(NOT MSVC)
-    # libc++ uses the libc++abi target names so libc++abi should be added
-    # first.
+    # Add the projects in reverse order of their dependencies so that the
+    # dependent projects can see the target names of their dependencies.
+    add_llvm_external_project(libunwind)
     add_llvm_external_project(libcxxabi)
     add_llvm_external_project(libcxx)
-    add_llvm_external_project(libunwind)
   endif()
   if(NOT LLVM_BUILD_EXTERNAL_COMPILER_RT)
     add_llvm_external_project(compiler-rt)




More information about the llvm-commits mailing list