I was wondering if there is now a cleaner implementation of the
following issue (see prior attached email below from Philip) where the PREFIX HACK
must be used to remove Debug and Release from the ouput path.<br>
<br>
What I would like to see is:<br>
<br>
<br>
PathToWherever/Debug/bin<br>
PathToWherever/Debug/lib<br>
PathToWherever/Debug/cfg<br>
...<br>
<br>
PathToWherever/Release/bin<br>
PathToWherever/Release/lib<br>
PathToWherever/Release/cfg<br>
...<br>
<br>
<br>
PathToWherever/Profile/bin<br>
PathToWherever/Profile/lib<br>
PathToWherever/Profile/cfg<br>
...<br>
<br>
Is there a clean way to implement this. I cannot figure out a way to
use the PREFIX hack to get the above result as the ../ needs to be at
then end of the path and would merge debug, release, and profile builds
into same dir.<br>
<br>
<br>
<br>
Thanks,<br>
<br>
Brian<br clear="all"><br>-snip-<br><br>Philip Lowman wrote:<br>
On Mon, May 26, 2008 at 2:20 AM, Andreas Fredriksson <<a href="mailto:deplinenoise-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target="_blank">deplinenoise-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a> <mailto:<a href="mailto:deplinenoise-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target="_blank">deplinenoise-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>>> wrote:<br>
<br>
Hi list, first post here.<br>
<br>
I'm converting a software project to use CMake and while doing so I<br>
realized it the old visual studio projects wrote their output with a<br>
suffix to a common directory, so executables for different<br>
configurations would live side by side (foo_d.exe, foo_r.exe).<br>
<br>
I know how to do the suffix thing (<CONFIG>_SUFFIX in the target<br>
properties), but I can't seem to get all build variants to end up in<br>
the same directory. If I set the runtime_output_directory option<br>
globally, everything is placed in configuration-names subdirectories<br>
such as <intended-dir>/<CONFIG>. Is there any way to lose that<br>
configuration-named directory?<br>
<br>
<br>
You need what has come to be called the PREFIX hack. Simply set the
PREFIX target property to "../" and your target will no longer be
generated in the build solution directory (Debug, Release, etc.) but
rather one directory higher.<br>
<br>
-- <br>
Philip Lowman<br><br>-snip-<br>
<br>