On 05/14/2013 05:42 PM, Robert Dailey wrote:
> What target property does TARGET_FILE_DIR access when used in a
> generator expression? I'm thinking I might be able to set the output
> directory directly to the custom target for each configuration. If I
> know which target property to set, this might work. Thanks Brad.

It access the directory in which the target's main file will be
placed, as computed by CMake.  The location of the target file
is determined by one of several properties (due to evolution over
time).  Look at cmTarget::ComputeOutputDir for the full logic.

You may want to set the RUNTIME_OUTPUT_DIRECTORY[_<CONFIG>]
property on a target to control where its .exe or .dll gets placed.

-Brad
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to