cmake: Disable make check target if required

Change-Id: I8930ddbdbb3c17f6e0a5652e1b476054292b4497