cmake: Correct gbm version check
It appears like gbm_VERSION can be a list, which if() does not like. So pass the variable to the if() rather than its value. While on this, also change GREATER_EQUAL to VERSION_GREATER_EQUAL so cmake compares individual version components.
(cherry picked from commit 70d76791)