Fix add_llvm_external_project.
[oota-llvm.git] / cmake / modules / AddLLVM.cmake
index 84f3216d6bc45cd73ef59827da28472f056c6a16..c3e1679bdb5dfca444c33101a079bb94ec010358 100644 (file)
@@ -781,7 +781,7 @@ endmacro()
 # enable or disable building it with everything else.
 # Additional parameter can be specified as the name of directory.
 macro(add_llvm_external_project name)
-  add_llvm_subdirectory(LLVM TOOL ${name})
+  add_llvm_subdirectory(LLVM TOOL ${name} ${ARGN})
 endmacro()
 
 macro(add_llvm_tool_subdirectory name)