[LLVMdev] how to compile my LLVM project with CMake (on Windows)?

Jun Koi junkoi2004 at gmail.com
Fri Aug 10 10:06:15 PDT 2012


hi,

i already successfully compiled & installled LLVM 3.1 on Windows (with
CMake & Visual Studio 2008). next, i am trying to understand how to
create a standalone LLVM project, and compile that on Windows (also
using CMake & Visual Studio 2008).

to start, i picked up the "examples\BrainF" project, renamed it to
"examples\BrainF2" (and i still put BrainF2 under the same examples\
directory)

next, inside BrainF2, i run on Windows console:

c:\llvm-3.1\examples\BrainF2\> cmake -G "Visual Studio 9 2008"

but then cmake complains error like "unknown CMake command add_llvm_example"

so i guess what i did is totally wrong. but i cannot find any doc
mentioning how to compile a project with CMake.

any help, please?



More information about the llvm-dev mailing list