Remove logic for explicitly setting INCLUDE_DIRECTORIES
from INTERFACE_INCLUDE_DIRECTORIES
of LINK_LIBRARIES
passed to libmexclass_client_add_proxy_library
#57
Labels
enhancement
New feature or request
In
libmexclass_client_add_proxy_library
, theLINK_LIBRARIES
argument allows clients to specify additional libraries to link against.Currently,
libmexclass_client_add_proxy_library
has custom logic for manually adding theINTERFACE_INCLUDE_DIRECTORIES
of allLINK_LIBRARIES
to theINCLUDE_DIRECTORIES
property of the clientProxy
library target.However, CMake does this automatically by default when
target_link_libraries
is called (i.e. CMake propagates the "usage requirements" of dependencies). Therefore, this custom logic can be removed.Included below is a relevant excerpt from the CMake documentation for "Transitive Usage Requirements":
The text was updated successfully, but these errors were encountered: