Explicitly mark libs as STATIC to not allow cmake rules override it.