[CMake] How to redirect output (.o file generattion) in specific directory

Alexander Neundorf a.neundorf-work at gmx.net
Mon Nov 12 12:27:33 EST 2007


On Monday 12 November 2007, Amit C. Kr. Saluja wrote:
> Eric,
> Thanks for this info!
>
> > EXECUTABLE_OUTPUT_PATH
> > LIBRARY_OUTPUT_PATH
>
> These are global CMake variables. If we change it then
> the EXECUTABLE & LIBRARY path of all the exe and libs
> changes but not for .os The.os are still generated in
> CMakeFiles/ directory.
>
> Can CMAKE_CURRENT_BINARY_DIR could do something?

No, AFAIK this is fix and you can't change it.

Why do you want to do that ?
(I recommend you just get used to the location of the object files).

Alex


More information about the CMake mailing list