celix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [celix] pnoltes opened a new issue #118: Use imported target for find_package instead of <PKG>_LIBRARIES
Date Wed, 02 Oct 2019 18:44:38 GMT
pnoltes opened a new issue #118: Use imported target for find_package instead of <PKG>_LIBRARIES
URL: https://github.com/apache/celix/issues/118
 
 
   For modern CMake it is preferred to use imported targets instead of <PKG>_INCLUDE_DIRS
and <PKG>_LIBRARIES variables. 
   
   The main reasons are that missing targets leads to errors and variable expanded to nothing
not and all transitive requirements can be added by one target_link_libraries statement (instead
of combining link, include and definition statements). 
   
   Another benefit is that the installed Celix targets - which in turn leads to imported target
in a project using Celix - depends on targets instead of absolute path to libraries. To gives
some tweaking room.   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message