Comments (8)
Bot detected the issue body's language is not English, translate it automatically.
Title: When customizing the cmake search path, the corresponding cmake package cannot be found
from xmake.
这个库很复杂,先试试用 xrepo 上的 abseil
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
This library is very complex. Try using abseil on xrepo first.
from xmake.
cmake::xxx 包,首先 cmake 本身的跟着 FindXXX 就很不可靠,要各种传参调整。。这块你只能自己调,可以先搞个 cmake 工程,直接去调通参数,再原样传进来。。。另外 xmake 内部目前的实现比较 hack,它需要解析提取获取到的 links 。。
所以,能不用就不要去用,尽可能用 xmake-repo 仓库的包。。如果非要用,自己调下 https://github.com/xmake-io/xmake/blob/master/xmake/modules/package/manager/cmake/find_package.lua
from xmake.
cmake::xxx 包,首先 cmake 本身的跟着 FindXXX 就很不可靠,要各种传参调整。。这块你只能自己调,可以先搞个 cmake 工程,直接去调通参数,再原样传进来。。。另外 xmake 内部目前的实现比较 hack,它需要解析提取获取到的 links 。。
所以,能不用就不要去用,尽可能用 xmake-repo 仓库的包。。如果非要用,自己调下 https://github.com/xmake-io/xmake/blob/master/xmake/modules/package/manager/cmake/find_package.lua
感谢您的解答,那如果想在xmake项目中集成这个cmake仓库,这个支持components吗,比如说foo::a,foo::b.看了add_requires貌似没找到相关的API呢
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
cmake::xxx package, first of all, cmake itself is very unreliable with FindXXX, and requires various parameter adjustment. . You can only adjust this yourself. You can first create a cmake project, directly adjust the parameters, and then pass them in as they are. . . In addition, the current internal implementation of xmake is relatively hacky, and it needs to parse and extract the obtained links. .
Therefore, don’t use it if you can’t use it, and use the packages from the xmake-repo warehouse as much as possible. . If you must use it, adjust it yourself https://github.com/xmake-io/xmake/blob/master/xmake/modules/package/manager/cmake/find_package.lua
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
cmake::xxx package, first of all, cmake itself is very unreliable with FindXXX, and requires various parameter adjustment. . You can only adjust this yourself. You can first create a cmake project, directly adjust the parameters, and then pass them in as they are. . . In addition, the current internal implementation of xmake is relatively hacky, and it needs to parse and extract the obtained links. .
Therefore, don’t use it if you can’t use it, and use the packages from the xmake-repo warehouse as much as possible. . If you must use it, adjust it yourself https://github.com/xmake-io/xmake/blob/master/xmake/modules/package/manager/cmake/find_package.lua
Thank you for your answer. If you want to integrate this cmake warehouse in the xmake project, does it support components, such as foo::a, foo::b. After looking at add_requires, it seems that I can't find the relevant API.
from xmake.
cmake::xxx 包,首先 cmake 本身的跟着 FindXXX 就很不可靠,要各种传参调整。。这块你只能自己调,可以先搞个 cmake 工程,直接去调通参数,再原样传进来。。。另外 xmake 内部目前的实现比较 hack,它需要解析提取获取到的 links 。。
所以,能不用就不要去用,尽可能用 xmake-repo 仓库的包。。如果非要用,自己调下 https://github.com/xmake-io/xmake/blob/master/xmake/modules/package/manager/cmake/find_package.lua感谢您的解答,那如果想在xmake项目中集成这个cmake仓库,这个支持components吗,比如说foo::a,foo::b.看了add_requires貌似没找到相关的API呢
支持,参考 sdl 那个包,文档不也有么 https://xmake.io/#/manual/package_dependencies?id=add-package-components
from xmake.
Related Issues (20)
- tests/projects/package/llvm_dev/xmake.lua 示例无法正常构建,报错LINK : fatal error LNK1181: 无法打开输入文件“MLIRAMX.lib” HOT 1
- Generated Cmakelists file seems to be wrong when you use conditional add_files() HOT 2
- 动态库set_version的soname配置交叉编译平台不生效 HOT 9
- nim building requires xmake build -r or else build doesn't see file changes HOT 3
- 编译项目时找不到主函数 HOT 5
- xmake 生成 cmakelists 错误 HOT 2
- 生成swig中添加add_ldflags 不生效 HOT 5
- checking for mingw directory ... no HOT 12
- 链接不了.dll.a HOT 20
- add_vectorexts all can't add simd flags HOT 3
- live status and progress visualisation - build graph HOT 2
- arch无法使用c++标准库模块 HOT 8
- 语义版本识别错误 HOT 23
- `add_requireconf` like api with package HOT 2
- Improve git clone HOT 22
- error: cannot get program for mrc HOT 4
- Windows下clang-cl工具链使用了msvc的链接器 HOT 7
- Relocation of dylibs in macOS .app Builds with Xcode Rules HOT 2
- xmake.lua脚本中,特定写法配置不生效的问题 HOT 10
- MinGW平台上cmake包编译问题 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake.