[CMake] how to compile single source file with debug options?
Sergey Spiridonov
sena at hurd.homeunix.org
Fri Jun 10 12:57:55 EDT 2016
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 do and have a debug build, you can then just do:
>
> touch file.c
>
> and only that file will be recompiled and relinked.
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.
--
Best regards, Sergey Spiridonov
More information about the CMake
mailing list