Hello.
I see an problem with working with relative and absolute path concat. I see that VisualGDB use plus two path, for example
I set
CMake directory: /mnt/hgfs/git/master/build/app1 (this is absolute path)
Binary directory: /mnt/hgfs/git/master/build/app1 (this is absolute path)
As result:
$TargetPath=/mnt/hgfs/git/master/build/app1/mnt/hgfs/git/master/build/app1
$(CMakeConfigurationDir)=/mnt/hgfs/git/master/build/app1/mnt/hgfs/git/master/build/app1
But should be:
$TargetPath=/mnt/hgfs/git/master/build/
$(CMakeConfigurationDir)=/mnt/hgfs/git/master/build/app1/
The same problem with relative path:
Binary directory: ../build/app1 (this is relative path)
$TargetPath=/mnt/hgfs/git/master/../build/app1
$(CMakeConfigurationDir)=/mnt/hgfs/git/master/../build/app1
This is good for CMake, but when make works with paths with .., this fail and don’t understand.
Good will be
$TargetPath=/mnt/hgfs/git/build/app1
You can implimant path concat with std::filesystem::path from C++17, that really right work with two relative and absoult paths.