You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "vaavaav (via GitHub)" <gi...@apache.org> on 2024/10/30 15:13:24 UTC
[I] Do not restrict CMAKE_MODULE_PATH to a single path (brpc)
vaavaav opened a new issue, #2805:
URL: https://github.com/apache/brpc/issues/2805
**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
More or less. It makes it harder to link bRPC to other projects.
**Describe the solution you'd like (描述你期望的解决方法)**
Instead of `set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)`, allow the user to provide other paths while still maintaining this one: `set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})`.
With this, developers can provide other paths where `Find<library>.cmake` files exist, in the command line (for example, `cmake -DCMAKE_MODULE_PATH=opt/lib/cmake`.
**Describe alternatives you've considered (描述你想到的折衷方案)**
I had to manually copy `Find<library>.cmake` files to the path indicated by `${PROJECT_SOURCE_DIR}/cmake`...
**Additional context/screenshots (更多上下文/截图)**
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] Do not restrict CMAKE_MODULE_PATH to a single path (brpc)
Posted by "chenBright (via GitHub)" <gi...@apache.org>.
chenBright commented on issue #2805:
URL: https://github.com/apache/brpc/issues/2805#issuecomment-2449742567
Good idea!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] Do not restrict CMAKE_MODULE_PATH to a single path (brpc)
Posted by "chenBright (via GitHub)" <gi...@apache.org>.
chenBright commented on issue #2805:
URL: https://github.com/apache/brpc/issues/2805#issuecomment-2448943755
Maybe it's better to use user specific paths first, like this: `set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake)`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] Do not restrict CMAKE_MODULE_PATH to a single path (brpc)
Posted by "vaavaav (via GitHub)" <gi...@apache.org>.
vaavaav commented on issue #2805:
URL: https://github.com/apache/brpc/issues/2805#issuecomment-2449645778
After searching a bit more, I stumble upon the suggestion of treating `CMAKE_MODULE_PATH` as a _list_ of paths.
As such, `list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")` is a much better practice.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] Do not restrict CMAKE_MODULE_PATH to a single path (brpc)
Posted by "wwbmmm (via GitHub)" <gi...@apache.org>.
wwbmmm closed issue #2805: Do not restrict CMAKE_MODULE_PATH to a single path
URL: https://github.com/apache/brpc/issues/2805
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org