Abort CMake if required dependencies are missing.