Hi everyone,
I have started using CMake more and more while helping a friend refactor a project. In his project, he had a hack to generate relative file paths that was not portable…
I was unable to find a way to solve the issue via existing modules so I took some time to rewrite it and to make it portable.
I wanted to distribute it and make it available. You can find it at: GitHub - antoniovazquezblanco/cmake-relativefilemacro: Relative file path macro for CMake.
I hope this is useful for those who don’t want to include full file paths in their compiled binaries while keeing the file paths in logs and similar…
Any kind of feedback is very much appreciated!