--- a/wx-config.in
+++ b/wx-config.in
@@ -403,6 +403,7 @@
 
 # Determine the base directories we require.
 prefix=${input_option_prefix-${this_prefix:-@prefix@}}
+prefix=$(cygpath -m ${prefix})
 exec_prefix=${input_option_exec_prefix-${input_option_prefix-${this_exec_prefix:-@exec_prefix@}}}
 wxconfdir="@libdir@/wx/config"
 
