CMakeLists.txt for VS2005 may have something wrong

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

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

&)'

In my opinion, this function is simply in error. Try applying the
llvm-vs2008.patch attached to this post:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2009-March/004537.html
to the LLVM source tree.

Sebastian