Visual Studio: Allow include directories to be removed from RC
This is a topic/issue that has been discussed previously, for example:
Microsoft's RC tool runs into problems with long command line arguments, and when running RC on a CMake target which has inherited many include directories from it's linked targets, the call to RC.exe will fail.
See here: https://developercommunity.visualstudio.com/content/problem/916330/msb6002-the-command-line-for-the-rc-task-is-too-lo.html (there is a Visual Studio project setting to use a response file with RC which doesn't seem to be working currently...)
Perhaps CMake could solve this problem by allowing include directories to be omitted when running the RC tool?
For example, a source file property which could be set on the resource file:
set_source_file_properties(resources.rc RC_REMOVE_INCLUDES TRUE)
Could this be feasible?