I've got a large cmake project which is currently completely built for production; the default gcc flags options are something like -fpic -s -O3.
What is the easiest way to recompile a small part of my project with different gcc flags?
But the only way I know how to accomplish this is by regenerating my makefiles with cmake, building the subproject, and regenerating the makefiles again.
$ cmake ../ -DCMAKE_C_FLAGS="-fpic -g" $ make subproject $ cmake ../ -DCMAKE_C_FLAGS="-fpic -s -O3" I'd like to be able to leave cmake out of it, and do something like this:
$ make C_FLAGS="-fpic -g" subproject