Re: [CMake] how to compile single source file with debug options?

2016-06-13 Thread Sergey Spiridonov
Hi all On 10/06/16 14:05, Sergey Spiridonov wrote: > To debug and fix our applications/libraries we often need to recompile > single source file in a debug mode. With the our current build system it > is as simple, as touching a file an starting make with debug option. It > will then recompile th

Re: [CMake] how to compile single source file with debug options?

2016-06-10 Thread Gonzalo
El 10/06/16 a las 13:57, Sergey Spiridonov escribió: I do release build, but I want single source file to be compiled in debug mode, with "-O0 -DDEBUG" options instead of "-O3". Of course, without recompiling whole directory. Oh, I see. In perspective, Windows, for example, does not allow mix

Re: [CMake] how to compile single source file with debug options?

2016-06-10 Thread Sergey Spiridonov
Hi Gonzalo On 10/06/16 18:52, Gonzalo wrote: >> We have big project with lots of libraries and applications. We want to >> switch to cmake. Currently we use our own build system, which is derived >> from tmake. > Cmake handles all dependencies if you keep the CMakeFiles directory around. > If you

Re: [CMake] how to compile single source file with debug options?

2016-06-10 Thread Gonzalo
El 10/06/16 a las 09:05, Sergey Spiridonov escribió: Hello all, We have big project with lots of libraries and applications. We want to switch to cmake. Currently we use our own build system, which is derived from tmake. Cmake handles all dependencies if you keep the CMakeFiles directory arou

[CMake] how to compile single source file with debug options?

2016-06-10 Thread Sergey Spiridonov
Hello all, We have big project with lots of libraries and applications. We want to switch to cmake. Currently we use our own build system, which is derived from tmake. To debug and fix our applications/libraries we often need to recompile single source file in a debug mode. With the our current b