cmake is not getting real path of workspace where workspace path is a symlink
We are generating an Xcode project and due to build restrictions outside of my power, we have to build in /private/tmp/mydir. Mac OS has a symlink to private directory as follows
$ ls -lah /
....
drwxr-xr-x@ 4 root wheel 128B Jun 3 2019 opt
drwxr-xr-x 6 root wheel 192B Sep 24 2018 private
drwxr-xr-x@ 64 root wheel 2.0K Nov 21 02:19 sbin
lrwxr-xr-x@ 1 root wheel 11B Sep 24 2018 tmp -> private/tmp
...
when I try to generate my xcode project cmake -G Xcode <source_dir>
under both /private/tmp/mydir/ and /tmp/mydir/, cmake only sees /tmp/mydir, and not the actual real path /private/tmp/mydir/.
I was wondering if this is bug in cmake or there is a way workaround it. This affects debug information of native binaries which are kind of messed up since it should be getting the real path and not the symlink path