Giter VIP home page Giter VIP logo

Comments (8)

Issues-translate-bot avatar Issues-translate-bot commented on August 28, 2024

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.

star-hengxing avatar star-hengxing commented on August 28, 2024

这个库很复杂,先试试用 xrepo 上的 abseil

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on August 28, 2024

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.

waruqi avatar waruqi commented on August 28, 2024

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.

monkiq avatar monkiq commented on August 28, 2024

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.

Issues-translate-bot avatar Issues-translate-bot commented on August 28, 2024

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.

Issues-translate-bot avatar Issues-translate-bot commented on August 28, 2024

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.

waruqi avatar waruqi commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.