[cmake-developers] INTERFACE_INCLUDE_DIRECTORIES on STATIC libs
Stephen Kelly
steveire at gmail.com
Thu Feb 7 16:15:43 EST 2013
Brad King wrote:
> On 02/07/2013 01:40 PM, Stephen Kelly wrote:
>>
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fecede0d9012f78470778cb049b2ab0231b4dcb7
>> + "If this variable is enabled, CMake automatically adds for each
>> shared "
>> + "library target, module target and executable target, "
>> + "${CMAKE_CURRENT_SOURCE_DIR} and ${CMAKE_CURRENT_BINARY_DIR} to the
>> "
>> + "INTERFACE_INCLUDE_DIRECTORIES."
> ...
>> + if(this->GetType() != cmTarget::SHARED_LIBRARY &&
>> + this->GetType() != cmTarget::MODULE_LIBRARY &&
>> + !this->IsExecutableWithExports())
>> + {
>> + return;
>> + }
>
> Doesn't INTERFACE_INCLUDE_DIRECTORIES still make sense for static libs?
>
Yes. Updated now.
What about OBJECT_LIBRARYs ? I have no experience with them.
Thanks,
Steve.
More information about the cmake-developers
mailing list