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

2007-11-12 Thread Amit C. Kr. Saluja
Hi All, If anybody could guide me about, How to redirect .o files in user defined directory? I am setting CMAKE_CURRENT_SOURCE_DIR to "../obj" but it is generating targets in ~/src/*.o Can anybody enlighten? Thanks & regards amit __ Do You Yahoo!

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

2007-11-12 Thread Eric Noulard
2007/11/12, Amit C. Kr. Saluja <[EMAIL PROTECTED]>: > Hi All, > > If anybody could guide me about, How to redirect .o > files in user defined directory? > > I am setting CMAKE_CURRENT_SOURCE_DIR to "../obj" but > it is generating targets in ~/src/*.o You cannot change CMAKE_CURRENT_SOURCE_DIR > >

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

2007-11-12 Thread Amit C. Kr. Saluja
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

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

2007-11-12 Thread Alexander Neundorf
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 ge

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

2007-11-13 Thread Amit C. Kr. Saluja
> 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). I want to add the gcc options for gcov in Makefile. The gcc flags dumps the *.gcno files at the location of .o files. So, if you run the gco

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

2007-11-13 Thread Bill Hoffman
Amit C. Kr. Saluja wrote: 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). I want to add the gcc options for gcov in Makefile. The gcc flags dumps the *.gcno files at the location of .o files. So,