Do not build lib-objects targets if we are just building static libs. This confuses some cmake targets.