title: cmake generate error
body: <p>ok, i'm building a project that compiles successfully with provided .cmd script and cmakelists.txt with visual studio 2010 but with 2010 it gives me following error:</p>
  
  <blockquote>
    <p>1>ClCompile:</p>
    
    <p>1> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.40219.01
    for x64</p>
    
    <p>1> Copyright (C) Microsoft Corporation.  All rights reserved.</p>
    
    <p>1> </p>
    
    <p>1> cl /c /W3 /WX- /O2 /Ob2 /D _WINDOWS /D NDEBUG /D<br>
    "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MD /GS /fp:precise<br>
    /Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec.dir\Release\"<br>
    /Fd"C:/alembic/out/i64/CMakeFiles/CMakeTmp/Release/cmTryCompileExec.pdb"   /Gd /TC /wd4267 /wd4800 /wd4018 /wd4244 /errorReport:prompt<br>
    "C:\alembic\out\i64\CMakeFiles\CMakeTmp\testCCompiler.c"
    _DEBUG /Zm1000 </p>
    
    <p>1> </p>
    
    <p>1> testCCompiler.c</p>
    
    <p>1> _DEBUG</p>
    
    <p>1>c1 : fatal error C1083: Cannot open source file: '_DEBUG': No such
    file   or directory</p>
    
    <p>1> Generating Code...</p>
    
    <p>1></p>
    
    <p>1>Build FAILED.</p>
  </blockquote>
  
  <p>and here is command i would like to get help to change </p>
  
  <pre><code>setlocal
  if /i "%1" == "db:" (
  
      set DB=_db
      set config=Debug
      set linkFolderName=Debug
      set boost_suffix=-sgd
      set cmake_flags=/MTd /D_DEBUG /EHsc /GR
      set zlib_suffix=d
      shift
  ) ELSE (
      set config=RelWithDebInfo
      set linkFolderName=Release
      set DB=
      set boost_suffix=-s
      set zlib_suffix=
      set cmake_flags=/MT /U _DEBUG /EHsc /GR
  )
  )
  </code></pre>
  
  <p>thanks,</p>
  
  <p>and please let me know if i can provide more info</p>