Fix build on CI.
Summary:
In the presence of spaces in directory names, things end up
double-escaped by using TO_NATIVE_PATH and then the
variable BINARY_DIR in the custom target. Work around
this by changing to native paths only on Windows.
Subscribers: Frameworks, Documentation
Tags: Frameworks, Documentation
Differential Revision: https://phabricator.kde.org/D5716