[CMake] Move llvm-shlib in prior to other tools.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 10 Nov 2014 15:03:02 +0000 (15:03 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 10 Nov 2014 15:03:02 +0000 (15:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221590 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CMakeLists.txt

index 3b5a82d..fd761ec 100644 (file)
@@ -8,6 +8,12 @@ else(WITH_POLLY)
   list(APPEND LLVM_IMPLICIT_PROJECT_IGNORE "${LLVM_MAIN_SRC_DIR}/tools/polly")
 endif(WITH_POLLY)
 
+if( LLVM_BUILD_LLVM_DYLIB )
+  add_llvm_tool_subdirectory(llvm-shlib)
+else()
+  ignore_llvm_tool_subdirectory(llvm-shlib)
+endif()
+
 add_llvm_tool_subdirectory(opt)
 add_llvm_tool_subdirectory(llvm-as)
 add_llvm_tool_subdirectory(llvm-dis)
@@ -74,12 +80,6 @@ else()
   ignore_llvm_tool_subdirectory(gold)
 endif()
 
-if( LLVM_BUILD_LLVM_DYLIB )
-  add_llvm_tool_subdirectory(llvm-shlib)
-else()
-  ignore_llvm_tool_subdirectory(llvm-shlib)
-endif()
-
 add_llvm_external_project(clang)
 
 if( NOT LLVM_INCLUDE_TOOLS STREQUAL "bootstrap-only" )