how to only be windows or unix path in the `Makefile`?

`MSYS2_ARG_CONV_EXCL=$MY_INSTALL_DIR2 cmake -G"MinGW Makefiles"\
      -DgRPC_INSTALL=ON \
      -DgRPC_BUILD_TESTS=OFF \
      -DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR2 \
      ../..`

cmake generate “MinGW Makefiles” that contains windows and unix path, how to force those paths to be only unix path or windows path?

official cmake docs, official msys2 docs, google search, AI can not give me answers