CMake Profile not propagated when chaining Run/Debug configurations
For example, I want to run the following sequence of programs:
cmake_program_1 -> python py_program.py -> cmake_program_2
The way I tried to accomplish this in CLion 2020.1 is to create three Run/Debug Configurations: cmake_program_1 (CMake Application), py_program (Python), and cmake_program_2 (CMake Application).
Next, I added Run 'Python 'py_program.py'' to Before launch for cmake_program_2 configuration and Run 'CMake Application 'cmake_program_1'' to Before launch for the py_program configuration.
Now when I run the cmake_program_2 | Release configuration it builds both both Debug and Release for cmake_program_1 and also executes cmake_program_1 with the Debug profile rather than the Release profile. I think this occurs because the CMake Profile isn't propagated back to cmake_program_1 since there is a python program in between. Is there some way around this? Is this expected behavior?
Please sign in to leave a comment.