title: How to set $(OutDir), $(TargetName), $(TargetExt), and %(Lib.OutputFile) with Visual Studio?
body: <p>I'm trying to build <a href="http://code.google.com/p/googletest/" rel="noreferrer">gtest</a> on Visual Studio 2010. After converting the solution file, I tried to build, and I got the following warning messages.</p>
  
  <pre><code>Warning 1   warning MSB8012: 
  TargetPath(C:\Users\sucho\Desktop\gtest-1.5.0\msvc\gtest/Debug\gtest.lib) does not match
  the Library's OutputFile property value (C:\Users\sucho\Desktop\gtest-1.5.0\msvc\gtest\
  Debug\gtestd.lib).
  
  This may cause your project to build incorrectly. 
  To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property
  values match the value specified in %(Lib.OutputFile).  
  C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets
  </code></pre>
  
  <p>The message says I need to setup variables <code>$(OutDir)</code>, <code>$(TargetName)</code> and <code>$(TargetExt)</code>, together with property values specified in <code>%(Lib.OutputFile)</code>.</p>
  
  <p>How can I do that with Visual Studio (especially VS 2010)?</p>