Comments (3)
Please use add_requires("opencv")
instead of cmake::OpenCV
whenever possible. Getting link information from cmake::OpenCV is unreliable.
from xmake.
Please use
add_requires("opencv")
instead ofcmake::OpenCV
whenever possible. Getting link information from cmake::OpenCV is unreliable.
Thanks for your reply. I have to use OpenCV with specific versions and options , so I can't simply use add_requires
. Can I pass these options by using something like add_requires("libname", {configs = {option_1 = val_1}})
, or I should create a local xrepo to do this?
I found Open3D hits the same issue too, but I didn't test more libs. For more convenience, is there a list of libs that should or shouldn't be located by cmake?
from xmake.
Only xmake-repo packages support config options.
But you can set some cmake configuarion. https://xmake.io/#/package/local_package?id=default-switch
from xmake.
Related Issues (20)
- `xmake f` overwrite the previous config HOT 4
- binary target如果没有源文件就不会编译deps的源码 HOT 3
- xmake addrequires boost提示找不到toolchains HOT 3
- add_deps不能自动链接 HOT 3
- Cannot install package `tobiaslocker_base64` HOT 3
- win11下编译异常 HOT 63
- includes("**/xmake.lua") 卡死 HOT 40
- The buildenvs function of autoconf.lua has uninitialized table HOT 2
- Inconsistent behavior between target:has_tool and package:has_tool with clang-cl HOT 2
- cudaErrorNoDevice 卡较长时间 HOT 2
- add_deps有性能问题 HOT 2
- Support Verilator target build to static library HOT 4
- How to get the package-name in xmake.lua like $(version) dose. HOT 1
- Support absolute library path of the package when link HOT 14
- `toolchains` configuration option in `add_requires` does not take effect on Windows. HOT 9
- armclang汇编警告 HOT 7
- How to require boost package in header-only mode HOT 2
- MSVC 使用 HOSTX64 工具链 HOT 11
- clang module 编译出现错误 attempt to concatenate a nil value (local 'bmifile') HOT 5
- clang module 编译出现错误 fatal error: 'mm_malloc.h' file not found HOT 8
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.