From: Chris Bieneman Date: Tue, 21 Jul 2015 00:44:47 +0000 (+0000) Subject: [CMake] Fixing inconsistency caused by copy-pasta. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=5bce8dfa265c7b6256f6e3d70673e3a875ea84d2;hp=1cd0962919732a692e4689b268650ada4283fbe9;ds=sidebyside [CMake] Fixing inconsistency caused by copy-pasta. This will actually fix the PR 24194. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242748 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 6c21a46b97d..9e108512fd8 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -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)