CMake / C++ /git project - How to share working directory in git?
I have a C++ / CMake project. For VisualStudio 2022, I can use set_target_properties(.. VS_DEBUGGER_WORKING_DIRECTORY ..) for the executable target in CMake. This way the setting is effective for my executable when VisualStudio 2022 is used. How do I achieve this for CLion?
I tried to create runConfigurations and store them in git .idea/runConfigurations. This seemed to work in linux where I created these files, however, when I tried to open the project again in Windows, CMake tool window does not show up, and trying to look at CMake settings only says “Not a plain cmake project”. I had to remove those files in order for CLion to treat the project again as CMake project, but of course, the working directory settings are then lost.
Please sign in to leave a comment.