Its always better to have out-of-source build. http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees This way, you have two build directories one for windows and other for unix. (like build-win and build-unix). no need to delete cache files. Surya