Please fix this bug! It's annoying that I have to set LLVM_DIRECTORY=/usr every time I use cmake...
It should be easy to fix. -- IRIE Shinsuke 12/11/05, IRIE Shinsuke wrote: > Hi, > > I'm using system-wide LLVM installed in /usr on Ubuntu 12.10, but > CMakeLists.txt cannot find it so I have to specify the directory > explicitly by a command line option -DLLVM_DIRECTORY=/usr. > > The following patch should fix this bug: > > Index: blender/CMakeLists.txt > =================================================================== > --- blender/CMakeLists.txt (revision 51867) > +++ blender/CMakeLists.txt (working copy) > @@ -715,7 +715,7 @@ > 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_STATIC YES) > - if(LLVM_DIRECTORY) > + if(EXISTS "${LLVM_DIRECTORY}/bin/llvm-config") > set(LLVM_CONFIG "${LLVM_DIRECTORY}/bin/llvm-config") > else() > set(LLVM_CONFIG llvm-config) > _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers