[cmake-developers] INTERFACE_INCLUDE_DIRECTORIES on STATIC libs

Brad King brad.king at kitware.com
Thu Feb 7 14:49:24 EST 2013


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?

-Brad



More information about the cmake-developers mailing list