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编译rust的lib失败 HOT 2
- Pass file's path when trying to export all symbols HOT 2
- on_run is not invoked if Visual Studio is unable to start debugger for unknown toolchains HOT 1
- win上set_languages 报warning HOT 1
- 安装 cairo 1.18.0 依赖库失败 HOT 10
- set_values(a, b, c) will set_default(a) by default HOT 2
- convert option value? HOT 14
- How can we run some utils tool like bin2c from command line? HOT 2
- xmake是否考虑加入这套交叉编译工具 HOT 1
- Compiling a cmake project with zig c++ doesn't resolve to and absolute path HOT 3
- 无法找到std模块 HOT 11
- Default Update from Github HOT 12
- add_ldflags添加"-Wl,--no-as-needed" 无法正常生效 HOT 5
- Error and xmake freeze during project configuration with glfw package: `cannot remove directory Unknown Error (145)` HOT 3
- Verilator 工程添加 .sv 文件后,无法生成compile_command.json HOT 5
- release mode 中 NDEBUG 也应该为cuflags添加 HOT 3
- Add `--toolchain_host=` argument HOT 7
- 便携版xmake生成的vsxmake项目找不到xmake HOT 6
- xmake watch命令无法递归检测子目录中文件变动 HOT 6
- ninja: error: build.ninja:68: unknown build rule 'cu' HOT 5
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.