[CMake] Use add_llvm_tool_symlink's OUTPUT_DIR option
authorChris Bieneman <beanz@apple.com>
Mon, 5 Dec 2016 03:29:10 +0000 (03:29 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 5 Dec 2016 03:29:10 +0000 (03:29 +0000)
This is updating to take r288632 into account.

llvm-svn: 288633

lldb/cmake/modules/AddLLDB.cmake

index 09952b1..bfea146 100644 (file)
@@ -116,7 +116,8 @@ macro(add_lldb_executable name)
             BUILD_WITH_INSTALL_RPATH On
             INSTALL_RPATH "@loader_path/../../../../${_dots}/${LLDB_FRAMEWORK_INSTALL_DIR}")
 
-      add_llvm_tool_symlink(${name} $<TARGET_FILE:${name}> ARG_ALWAYS_GENERATE)
+      add_llvm_tool_symlink(${name} ${name} ARG_ALWAYS_GENERATE
+                            OUTPUT_DIR ${LLVM_RUNTIME_OUTPUT_INTDIR})
     else()
       set_target_properties(${name} PROPERTIES
             BUILD_WITH_INSTALL_RPATH On