[CMake] CMake add_subdirectory and recompiling

Bill Hoffman bill.hoffman at kitware.com
Wed Dec 21 12:06:34 EST 2011


On 12/21/2011 11:56 AM, Michael Wild wrote:

>>
>> [1]: http://stackoverflow.com/questions/8479929/cmake-add-subdirectory-and-recompiling
>
> Get rid of the file(GLOB ...). Never, ever use it unless you know
> exactly what you're doing. Using it usually breaks something.
>
> Also, you didn't say *what* changes you made that caused a full rebuild.
> If you change anything that will show up on the command line (e.g.
> change add_definitions(), include_directories(), etc.), this will of
> course cause a rebuild.
>

I made a comment on stackoverflow as well.


-Bill



More information about the CMake mailing list