[CMake] How To change VS2005 Output directory

Philip Lowman philip at yhbt.com
Mon Feb 2 21:35:42 EST 2009


On Mon, Feb 2, 2009 at 7:13 PM, LaViolette, Alan <
ALAVIOLETTE at overwatch.textron.com> wrote:

> I changed the CMAKE_CFG_INTDIR and I don't see any changes in the
> project file.
>
> I am setting
> set (CMAKE_RUNTIME_OUTPUT_DIRECTORY
>     ${CMAKE_SOURCE_DIR}/bin/${CMAKE_PLATFORM})
>
>
> The problem is The VS2005 generator always appends the configuration
> name so I get
> if
>        CMAKE_SOURCE_DIR = x:\
>        CMAKE_PLATFORM = Win32
>
> X:/bin/Win32/Debug
>
> I would like to have
>
> X:/bin/Win32_Debug
>
> or for plugins
>
> X:/bin/Win32/Debug/Handlers
>
> I would like to have
>
> set (CMAKE_RUNTIME_OUTPUT_DIRECTORY
>     ${CMAKE_SOURCE_DIR}/bin/${CMAKE_PLATFORM}/$(ConfigurationName))
>
> The $(ConfigurationName) is expanded by the IDE to the configuration
> like Debug or Release.


It sounds like you need the PREFIX hack.  Not sure if it will make the
"Win32_Debug" folder for you though, you'll have to try it and see.

http://www.mail-archive.com/cmake@cmake.org/msg14083.html


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


More information about the CMake mailing list