Hi, I've committed the llvm-config patch now. Also changed it so it doesn't only look for static libLLVMAnalysis.a, but also dynamic libs. That might not be enough to make it work though.
Brecht. On Thu, Nov 8, 2012 at 12:45 PM, IRIE Shinsuke <[email protected]> wrote: > 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 > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
