<div><br></div>By the way, I had a quick look at the source code <div>in cmLocalVisualStudio7Generator.cxx for case cmTarget::EXECUTABLE: </div><div><div><div><br></div><div>replacing</div><div><div> temp = target.GetDirectory(configName);</div>
<div>by</div><div><div> temp = target.GetDirectory("");</div><div><br></div><div>seems to do the job of removing additional 'Debug' or 'Release' </div><div>directories from the OutputFile executable name.</div>
<div><br></div><div> temp += "/";</div><div> temp += targetNameFull;</div><div> fout << "\t\t\t\tOutputFile=\"" </div><div> << this->ConvertToXMLOutputPathSingle(temp.c_str()) << "\"\n";</div>
<div><br></div><div>Is there a better way, or should I write an option/patch </div><div>to strip the configuration directory that can go in the cmake release? </div><div><br></div><div>Thanks,</div><div>Erwin</div><div><br>
</div><div><br></div><br><div class="gmail_quote">On 7 February 2010 18:57, Erwin Coumans <span dir="ltr"><<a href="mailto:erwin.coumans@gmail.com">erwin.coumans@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><br></div><div>Hi,</div><div><br></div><div><span style="font-family:arial, sans-serif;border-collapse:collapse">How can we specify the actual directory where the executable ends up in MSVC, without any messing around by adding 'Debug' or "Release'?</span></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><span style="font-family:arial, sans-serif;border-collapse:collapse">I tried the following lines:</span></div>
<div><span style="font-family:arial, sans-serif;border-collapse:collapse"><br></span></div><div><span style="font-family:arial, sans-serif;border-collapse:collapse"><div>
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BULLET_PHYSICS_SOURCE_DIR})</div><div>SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${BULLET_PHYSICS_SOURCE_DIR})</div><div>SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${BULLET_PHYSICS_SOURCE_DIR})</div>
<div><br></div><div>But the generated MSVC projectfiles still add 'Debug', 'Release' to the directory. How can this additional 'Debug' or 'Release' be removed?</div><div><br></div></span></div>
<div><a href="http://www.itk.org/Bug/view.php?id=8555" target="_blank">http://www.itk.org/Bug/view.php?id=8555</a> suggests using the following hack:</div><div><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:13px">if(MSVC)</span></div>
<span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:13px"> set_target_properties(foo PROPERTIES PREFIX "../")<br>
endif()</span><br><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">The issue was discussed a few times in the bug tracker, but I couldn't make it work with CMake 2.8.</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><a href="http://www.itk.org/Bug/view.php?id=8243" target="_blank">http://www.itk.org/Bug/view.php?id=8243</a></div>
<div><a href="http://www.itk.org/Bug/view.php?id=9163" target="_blank">http://www.itk.org/Bug/view.php?id=9163</a></div><div><a href="http://itk.org/Bug/view.php?id=9924" target="_blank">http://itk.org/Bug/view.php?id=9924</a></div>
<div><br></div><div>The issue was also brought up without any solution here <span style="font-family:arial, sans-serif;border-collapse:collapse">(I do not want to use install targets)</span></div>
<div><a href="http://stackoverflow.com/questions/543203/cmake-runtimeoutputdirectory-on-windows" target="_blank">http://stackoverflow.com/questions/543203/cmake-runtimeoutputdirectory-on-windows</a></div><div><br></div><div>
Can someone help get rid of this additional 'Debug' or 'Release' appended to the <span style="font-family:arial, sans-serif;border-collapse:collapse">CMAKE_RUNTIME_OUTPUT_DIRECTORY <span style="border-collapse:separate;font-family:arial">in MSVC?</span></span></div>
<div>Thanks,</div><div>Erwin</div><font color="#888888"><div><br></div><div><br></div>
</font></blockquote></div><br></div></div></div></div>