disable irrelevant openjdk target when openjdk is passed as a flag