[question] Is there a way to use full lib path instead of `-lname`?
See original GitHub issueWhen I add
self.cpp_info.libs = ["name"]
then on macOS it is transformed to the option -lname
.
All works fine except when I use a dylib with non standard name scheme (“name
.plugin” instead of “libname
.dylib”). Then I get the error “can not find …”.
I know that there is -l:name
option but Apple binutils does not understand it.
CMake just generates the full lib path instead of -lname
. So it can utilize it.
Is there a way to generate the full lib path in conanbuildinfo.xxx
file?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
How to specify preference of library path? - c++ - Stack Overflow
Use the rpath option via gcc to linker - runtime library search path, will be used instead of looking in standard dir (gcc...
Read more >How to manually install a cpp library - Unix Stack Exchange
I am wondering where I have to put them in order for eclipse to find them with -lname . It seems that I...
Read more >How are bash variables containing a file path with non-ascii ...
How are bash variables containing a file path with non-ascii characters and spaces used as input for commands, cat, exiftool, etc.? Ask Question....
Read more >Installing GCC: Configuration - GNU Project
This is how we generally build GCC; building where srcdir == objdir should ... list may instead contain @name , to use the...
Read more >An Introduction to GCC - Shared libraries and static libraries
Whenever a static library 'lib NAME .a' would be used for linking with the option -l NAME the compiler first checks for an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am a bit confused here. Conan does not generate
-lxxx
in the cmake generators. I guess this is talking about the other generators.Oh, I’ve just seen the PR https://github.com/conan-io/conan/pull/6600