News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Pre-Build Steps

Started by JNo, September 30, 2020, 03:25:11 PM

Previous topic - Next topic

JNo

Hi,

I use Code::Blocks on WIN10.

I have a workspace with several projects.

On each build of project I want to display the relative project directory from workspace directory.

In fact I add in Pre-Build steps I add:
cmd /c @echo cd $(PROJECT_DIR)

But $(PROJECT_DIR) is a absolute path.

How I can display an relative path ?

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]