<html><head></head><body bgcolor='#FFFFFF' style='font-size:12px;background-color:#FFFFFF;font-family:Verdana, Arial, sans-serif;'>Hi,<br/><br/>trying to convert a project from VS2008 to VS2010 I stumbled upon a problem with the target property OUTPUT_NAME not working as expected.<br/><br/><span style="display: none"> </span>One of the targets I build is a plugin for a 3rdParty library I link to. This plugin needs to be in a fixed named directory next to my executables and with a fixed file extension. Therefor I used set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin CACHE PATH "" ) to have all my executables in one place and than used set_target_properties( plugin PROPERTIES OUTPUT_NAME "plugins/plugin" ) on the plugin target to get it created in the needed subdirectory.<br/><br/>This worked well in VS2008, but in VS2010 only the compiler generated .pdb file ends up in this subdirectory, everything else ends up in the same directory as my executables.<br/><br/>Since (mis?)using OUTPUT_NAME to prefix it with an output directory name might be a bit hackish in the first place, should it be expected to work the same way in both VS versions or is there another (cmake best practice) way to accomplish my goal?<br/><br/>Small test case attached.<br/>Tested with CMake 2.8.4 and 2.8.5-rc1.<br/><br/>Best regards,<br/>Thomas <br><br><table cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#000000"><img src="https://img.ui-portal.de/p.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td style="font-family:verdana; font-size:12px; line-height:17px;">Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die <br>Toolbar eingebaut! <a href="http://produkte.web.de/go/toolbar"><b>http://produkte.web.de/go/toolbar</b></a></td></tr></table>
</body></html>