[CMake] using install() with EXCLUDE_FROM_ALL

Michael Wild themiwi at gmail.com
Thu Apr 8 00:37:54 EDT 2010


On 8. Apr, 2010, at 3:39 , Ryan Pavlik wrote:

> You might consider just setting the EXCLUDE_FROM_ALL property on specific
> targets, instead of an entire subdirectory.
> 
> Ryan
> 
> On Wed, Apr 7, 2010 at 8:33 PM, Daniel Nelson <torham at connect2.com> wrote:
> 
>> If I use add_subdirectory with the EXCLUDE_FROM_ALL option, then any files
>> whose install commands are in that directory are not installed as part of
>> 'make install'.  Is this on purpose, and if so is there a way I can install
>> these files?
>> --
>> Daniel

Also there is the OPTIONAL argument to the INSTALL command which might be of help here.


Michael


More information about the CMake mailing list