[cfe-dev] CMakeLists.txt for VS2005 may have something wrong

lujiandong1001 at yahoo.com.cn lujiandong1001 at yahoo.com.cn
Mon Mar 9 19:54:23 PDT 2009


hi,my llvm home dir is D:\projects\llvm

I use these commands to generate .sln file for vs2005:
cd D:\projects\llvm
cmake CMakeLists.txt
then I got a .sln in the directory.
I use vs2005 open  llvm.sln ,and compile all projects.
It failed in project clangCodegen,file CGBlocks.cpp:
"D:\projects\llvm\include\llvm/Support/CommandLine.h(836) : error C3861: 'setValue': identifier not found
        D:\projects\llvm\include\llvm/Support/CommandLine.h(831) : while compiling class template member function 'bool llvm::cl::opt::handleOccurrence(unsigned int,const char *,const std::string &)'
        with
        [
            DataType=bool
        ]
        .\CGBlocks.cpp(34) : see reference to class template instantiation 'llvm::cl::opt' being compiled
        with
        [
            DataType=bool
        ]
"

But I use D:\projects\llvm\win32\clang.sln to compile clangCodeGen project successfully.
I think CMakeLists.txt may have something wrong




      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/




More information about the cfe-dev mailing list