The previous steps of TO_NATIVE_PATH followed by ABSOLUTE is not meaningful or reliable: output of ABSOLUTE is always in "cmake" path format, not native path format. Native path input to CMake commands may not do what you want.