Hello People,
A long standing issue I have had is the inclusion of the actual full path including mount point for project resources on a separate drive. In my case this is a problem when the project is worked on using a different computer.
I am looking for a way to use the full path without the mount point to reference project resources.
I am using CodeBlocks 16.01 on Debian 10 (Buster), CB 20.03 on FreeBSD 12.2, and older versions on OSX, MacOS, and RHEL 5.10.
I typically use absolute paths to project resources and let CB figure out the relative paths when it needs to.
Most of the computers I use have the project files, source code, and other resources on a separate drive.
The separate drive for each computer has a different mount point name. One is SG2Data, another is PIIData, another is KOSXData, another is FCH016Data, etc.
There are soft links to directories containing various project resources, e.g.
/Code -> /PIIData/Code
/CodeTemp -> /SG2Data/CodeTemp
/SDK -> /SG2Data/SDK
/Source -> /PIIData/Source
etc
(two different computers are reflected above)
The Project Base Path in CodeBlocks uses the mount point as part of the path:
/SG2Data/CodeTemp/ins_LPOCode/LPOCheck/Source/main.cpp
/PIIData/CodeTemp/ins_LPOCode/LPOCheck/Source/main.cpp
Is there a way to have CodeBlocks use the path I tell it as the project base path so that none of the paths include the mount point in this situation?
As a side note, over the years I have made a point of manually editing project files to remove the mount point. However, I have to do this each time the project or workspace is updated on one computer and used on another.
Thanks
=thoth=