I am using cmake to build a visual studio 2008 solution file. When I do all build it works fine, but when I try to run a certain target inside that solution its giving me errors like:
fatal error: 'limits.h' file not found
'stdio.h' file not found
'reloc2.h' file not found
'stdlib.h' file not found.
The build freezes in the middle.
Can an expert tell me why this is happening. I looked at the executable, include, lib paths inside the vc project: tools-> options -> projects and solutions->vc++ directories, The path for VB/include or/libs etcs were all present.

Try them as:

#include <climits>
#include <cstdio>
#include <cstdlib>

These are the includes for use in standard C++ programs. I'm not sure what that other file is. A brief net search indicates it might be a *nix file which you will not find in the Visual Studio and may need to find a substitute.