VS: add_custom_command POST_BUILD with very long PATH
When adding post build event by calling add_custom_command, the PATH seems corrupt when the length of PATH environment variable is bigger than 8191 characters. That caused no commands could be executed in post build event. However, with a shorter PATH, everything works fine. We are using "Visual Studio 15 2017" as generator if that is relevant. Please take a look, thanks.
Cmake version 3.18.2
Edited by Brad King