[CMake] CMake add_subdirectory and recompiling

André Caron andre.l.caron at gmail.com
Wed Dec 21 13:56:39 EST 2011


Bill, your suggestion lead me to find a problem in the way I was setting the 
compiler flags.
It seems this had nothing to do with the "add_subdirectory()" command or my 
project structure.

If you're interested in the answer, checkout it out: 
http://stackoverflow.com/q/8479929/313063

Thanks,
André

-----Original Message----- 
From: Bill Hoffman
Sent: Wednesday, December 21, 2011 12:06 PM
To: cmake at cmake.org
Subject: Re: [CMake] CMake add_subdirectory and recompiling

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

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake 



More information about the CMake mailing list