From 3b3ad5bba6d6a4355e801f125e26382f98bf7237 Mon Sep 17 00:00:00 2001 From: Lukas Toenne Date: Thu, 25 Oct 2012 14:31:52 +0000 Subject: [PATCH] Fix for cmake syntax error: LLVM_VERSION string was not configurable, causing linker errors for people not using the default LLVM version (3.0 on Linux, 3.1 on OSX). --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c144601b7a..5a06011246f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -717,7 +717,7 @@ if(UNIX AND NOT APPLE) if(WITH_LLVM) set(LLVM_DIRECTORY ${LIBDIR}/llvm CACHE PATH "Path to the LLVM installation") - set(LLVM_VERSION "3.0" CACHE STRING "Version of LLVM to use" "") + set(LLVM_VERSION "3.0" CACHE STRING "Version of LLVM to use") set(LLVM_STATIC YES) if(LLVM_DIRECTORY) set(LLVM_CONFIG "${LLVM_DIRECTORY}/bin/llvm-config") @@ -1610,7 +1610,7 @@ elseif(APPLE) if(WITH_LLVM) set(LLVM_DIRECTORY ${LIBDIR}/llvm CACHE PATH "Path to the LLVM installation") - set(LLVM_VERSION "3.1" CACHE STRING "Version of LLVM to use" "") + set(LLVM_VERSION "3.1" CACHE STRING "Version of LLVM to use") set(LLVM_STATIC YES) if(LLVM_DIRECTORY) set(LLVM_CONFIG "${LLVM_DIRECTORY}/bin/llvm-config")