travis: Use a separate dir for static builds for CMake

Signed-off-by: Timothy Gu <timothygu99@gmail.com>