build: fix unsupported CMake comparison operation