1# Copyright 2017 MongoDB Inc. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15set (PACKAGE_VERSION @MONGOC_VERSION@) 16 17if ("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@MONGOC_MAJOR_VERSION@") 18 if ("${PACKAGE_FIND_VERSION_MINOR}" EQUAL "@MONGOC_MINOR_VERSION@") 19 set (PACKAGE_VERSION_EXACT TRUE) 20 elseif ("${PACKAGE_FIND_VERSION_MINOR}" LESS "@MONGOC_MINOR_VERSION@") 21 set (PACKAGE_VERSION_COMPATIBLE TRUE) 22 else () 23 set (PACKAGE_VERSION_UNSUITABLE TRUE) 24 endif () 25elseif (PACKAGE_FIND_VERSION) 26 set (PACKAGE_VERSION_UNSUITABLE TRUE) 27endif () 28