zproject icon indicating copy to clipboard operation
zproject copied to clipboard

Adding dependent libraries

Open sphaero opened this issue 4 years ago • 1 comments

How can one add libraries to the project?

For example I just added an executable which depends on libdl but I can't express this in the project.xml? I now have to manually modify the generated CMakeLists.txt, or set LDFLAGS on the command line?

Suggestions welcome!

sphaero avatar Aug 31 '21 07:08 sphaero

I also tried

    <use project = "libc">
      <linkname>"dl"</linkname>
    </use>

But to no avail as this generates much more then needed, ie #include <libc.h> in the global include.

sphaero avatar Aug 31 '21 08:08 sphaero