The resincludedirs build script function should control the value of the element in Visual Studio project files, but instead it is ignored and the value of includedirs is output instead. This appears to be a bug caused by calling the include_dirs function here instead of one which considers the value of resincludedirs instead.