Working directory macros with remote toolchains
I'm running version 2020.1 locally on Windows and compiling on a remote machine running Linux. Building the system works fine, but when I try to run my executable after compilation it runs from the wrong directory. Specifically, it runs inside the CMake build folder, whereas I would like to run my command from the top project directory. Specifying $ProjectFileDir$ or $ContentRoot$ have no effect.
Further, I'm trying to run a script before launching the executable with the Remote Tools interface and the working directory is not only ignored, but also uses the remote machine home directory, rather than the folder in /tmp which CLion is deploying to.
Is there something I'm missing here? Are these the wrong macros to use?
请先登录再写评论。