[llvm-commits] {PATCH] Missing quotes in LLVMConfig.cmake.in
kai
kai at redstar.de
Fri Jul 6 16:12:34 PDT 2012
Hi!
There are missing quotes around LLVM_INSTALL_PREFIX in
LLVMConfig.cmake.in. If you install LLVM in a folder like D:\Program
Files\LLVM-x64 then you get an error from CMake. The attached patch
corrects LLVMConfig.cmake.in (the problem is also present in 3.1 release).
Regards
Kai
-------------- next part --------------
diff --git a/cmake/modules/LLVMConfig.cmake.in b/cmake/modules/LLVMConfig.cmake.in
index 443ec41..c43119e 100644
--- a/cmake/modules/LLVMConfig.cmake.in
+++ b/cmake/modules/LLVMConfig.cmake.in
@@ -31,7 +31,7 @@ set(HAVE_LIBPTHREAD @HAVE_LIBPTHREAD@)
set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
set(LLVM_ON_WIN32 @LLVM_ON_WIN32@)
-set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@)
+set(LLVM_INSTALL_PREFIX "@LLVM_INSTALL_PREFIX@")
set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
More information about the llvm-commits
mailing list