Added dirs target to createthe build directoy before invoking CMake