When building via cmake, the linker outputs the following lines:
[35%] Linking CXX shared library libexample.so
...
[47%] Linking CXX executable ../folder/program
My understanding is that the printed path of the shared object or executable is relative to the working directory.
Is there any way to tell the linker to output absolute path?
Such output would be desirable:
[35%] Linking CXX shared library /absolute/libexample.so
...
[47%] Linking CXX executable /absolute/folder/program
I need the absolute path to parse and use it further. In the context where the parsing takes place, the working directory is unfortunately not directly known.