/my/build/tool my_output_directory/$file.o
It does not work, however, when I select "Compile" in the context menu of the workspace view.Are you saying that you right click on a file in the Projects tab of the Management panel and click Compile/Build, it substitutes the wrong filename into the custom build command you setup?
$(CurrentFileName) is replaced by the file beeing edited, and not by the file selected in the
workspace view.