[llvm] r242748 - [CMake] Fixing inconsistency caused by copy-pasta.

Chris Bieneman beanz at apple.com
Mon Jul 20 17:44:47 PDT 2015


Author: cbieneman
Date: Mon Jul 20 19:44:47 2015
New Revision: 242748

URL: http://llvm.org/viewvc/llvm-project?rev=242748&view=rev
Log:
[CMake] Fixing inconsistency caused by copy-pasta.

This will actually fix the PR 24194.

Modified:
    llvm/trunk/cmake/modules/AddLLVM.cmake

Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=242748&r1=242747&r2=242748&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Mon Jul 20 19:44:47 2015
@@ -694,8 +694,8 @@ macro(add_llvm_external_project name)
     set(add_llvm_external_dir ${name})
   endif()
   canonicalize_tool_name(${name} nameUPPER)
-  if(NOT DEFINED LLVM_TOOL_${projectName}_BUILD)
-    option(LLVM_TOOL_${name}_BUILD
+  if(NOT DEFINED LLVM_TOOL_${nameUPPER}_BUILD)
+    option(LLVM_TOOL_${nameUPPER}_BUILD
            "Whether to build ${name} as part of LLVM" On)
   endif()
   if (LLVM_TOOL_${nameUPPER}_BUILD)





More information about the llvm-commits mailing list