Fix CMake error on windows.

Make sure we always compare two strings.