<div><br></div><div>Hi,</div><div><br></div><div><span class="Apple-style-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 class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; border-collapse: collapse; ">I tried the following lines:</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-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">http://www.itk.org/Bug/view.php?id=8555</a> suggests using the following hack:</div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">if(MSVC)</span></div>
<span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "> set_target_properties(foo PROPERTIES PREFIX "../")<br>
endif()</span><br><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-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 class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><a href="http://www.itk.org/Bug/view.php?id=8243">http://www.itk.org/Bug/view.php?id=8243</a></div>
<div><a href="http://www.itk.org/Bug/view.php?id=9163">http://www.itk.org/Bug/view.php?id=9163</a></div><div><a href="http://itk.org/Bug/view.php?id=9924">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 class="Apple-style-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">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 class="Apple-style-span" style="font-family: arial, sans-serif; border-collapse: collapse; ">CMAKE_RUNTIME_OUTPUT_DIRECTORY <span class="Apple-style-span" style="border-collapse: separate; font-family: arial; ">in MSVC?</span></span></div>
<div>Thanks,</div><div>Erwin</div><div><br></div><div><br></div>