Hi all,<br><br>I need help building a project with two filenames with the same name (they are in different subdirectories).&nbsp; Unfortunately, since VS builds all object files into the same directory, one of the object files will get clobbered and in addition I get a LNK4042 error (object specified more than once; extras ignored).
<br><br>Short of renaming my source file, is there a way to solve this with the latest version of cmake?&nbsp; I've tried something similar to the following:<br><br>SET_SOURCE_FILES_PROPERTIES( myfile.cpp PROPERTIES COMPILE_FLAGS &quot;/Fo\&quot;
myfile2.obj\&quot;&quot; )<br><br>to force it to use a different object filename.&nbsp; The /Fo thing does show up in the command line additional options section, but I think Visual Studio is ignoring it, becuase it still ends up using /Fo&quot;Release\&quot; and /Fo&quot;Debug\&quot; no matter what.
<br><br>Ideas?<br><br>Phillip<br>