[CMake] Runtime directory / staging question

Philip Lowman philip at yhbt.com
Mon May 26 10:30:57 EDT 2008


On Mon, May 26, 2008 at 2:20 AM, Andreas Fredriksson <deplinenoise at gmail.com>
wrote:

> Hi list, first post here.
>
> I'm converting a software project to use CMake and while doing so I
> realized it the old visual studio projects wrote their output with a
> suffix to a common directory, so executables for different
> configurations would live side by side (foo_d.exe, foo_r.exe).
>
> I know how to do the suffix thing (<CONFIG>_SUFFIX in the target
> properties), but I can't seem to get all build variants to end up in
> the same directory. If I set the runtime_output_directory option
> globally, everything is placed in configuration-names subdirectories
> such as <intended-dir>/<CONFIG>. Is there any way to lose that
> configuration-named directory?


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.

-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080526/d220f5dc/attachment.htm>


More information about the CMake mailing list