To avoid writing absolute paths in generated cmake exports.
This doesn't seem to break things like pkg-config --libs eigenpy / pkg-config --cflags eigenpy, as ${pcfiledir} gets expanded to the right location of eg. eigenpy.pc, as the man says.
This is not really mandatory for my use cases, but it allow to write tools and automated tests that check for wrong absolute paths in generated cmake exports.
To avoid writing absolute paths in generated cmake exports.
This doesn't seem to break things like
pkg-config --libs eigenpy
/pkg-config --cflags eigenpy
, as${pcfiledir}
gets expanded to the right location of eg.eigenpy.pc
, as the man says.This is not really mandatory for my use cases, but it allow to write tools and automated tests that check for wrong absolute paths in generated cmake exports.