summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-07-21 00:44:47 +0000
committerChris Bieneman <beanz@apple.com>2015-07-21 00:44:47 +0000
commit077f3fe1a16f4781ca5f814e12ae97984cb5597b (patch)
tree80270b2abb3712dab4ec297d87bcbef1f353b6ee /llvm/cmake/modules
parentf849bb49cc188eb0844a042b312ae76368d25693 (diff)
downloadbcm5719-llvm-077f3fe1a16f4781ca5f814e12ae97984cb5597b.tar.gz
bcm5719-llvm-077f3fe1a16f4781ca5f814e12ae97984cb5597b.zip
[CMake] Fixing inconsistency caused by copy-pasta.
This will actually fix the PR 24194. llvm-svn: 242748
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 6c21a46b97d..9e108512fd8 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/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)
OpenPOWER on IntegriCloud