Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

respect environment variables when searching for system packages #1776

Closed
xq114 opened this issue Oct 26, 2021 · 1 comment
Closed

respect environment variables when searching for system packages #1776

xq114 opened this issue Oct 26, 2021 · 1 comment

Comments

@xq114
Copy link
Contributor

xq114 commented Oct 26, 2021

你在什么场景下需要该功能?

#1762

find_package("system::library")

对能够直接在代码里面#include头文件、链接器声明-llibrary的库应该都能找到,这样就需要在编译器默认的系统文件夹外也搜索由环境变量声明的额外文件夹。否则xmake无法找到用户自定义位置的系统包

描述可能的解决方案

在寻找系统包的时候也搜索INCLUDE/LIB/CPATH/C_INCLUDE_PATH/CPLUS_INCLUDE_PATH/LIBRARY_PATH等环境变量声明的文件夹

@waruqi waruqi added this to the v2.6.1 milestone Nov 2, 2021
@waruqi
Copy link
Member

waruqi commented Nov 2, 2021

支持了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants