Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake not support $(execpath //foo:bar)? #1013

Closed
xiedeacc opened this issue Feb 10, 2023 · 1 comment · Fixed by #1272
Closed

cmake not support $(execpath //foo:bar)? #1013

xiedeacc opened this issue Feb 10, 2023 · 1 comment · Fixed by #1272

Comments

@xiedeacc
Copy link

I defined a cache_entries: "MYSQL_INCLUDE_DIR": "$(locations @mysqlclient)" + "/include", but $(locations @mysqlclient) is empty, so it's cmake not support make variables? or just cannot used in cache_entries or way I used not correct?

@jagobagascon
Copy link

I just had the same problem trying to reference a file in copts. AFAIK the rules need to be updated to support it.

I had to use the ${EXT_BUILD_ROOT} variable to get the correct path.

copts = [
    '-DMY_VAR="${EXT_BUILD_ROOT}/my_path/my_file.h"',
]

This feels quite ugly, and if your project can be imported by others then it won't work because the path will contain external/your_dep_name/....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants