2012-09-14 13:09:51 +04:00
|
|
|
# Central location to check for cmake (version) requirements
|
|
|
|
#
|
|
|
|
#=============================================================================
|
2013-12-04 14:37:57 +04:00
|
|
|
# Copyright 2012 Bernhard Miklautz <bernhard.miklautz@thincast.com>
|
2012-09-14 13:09:51 +04:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#=============================================================================
|
|
|
|
|
2012-11-23 18:12:52 +04:00
|
|
|
macro(enable_cmake_compat CMVERSION)
|
|
|
|
if(${CMAKE_VERSION} VERSION_LESS ${CMVERSION})
|
2021-06-21 12:39:34 +03:00
|
|
|
LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/compat_${CMVERSION}/")
|
2012-11-23 18:12:52 +04:00
|
|
|
endif()
|
|
|
|
endmacro()
|
|
|
|
|
2013-10-29 22:47:40 +04:00
|
|
|
# Compatibility includes - order does matter!
|
2017-08-16 16:09:33 +03:00
|
|
|
enable_cmake_compat(3.7.0)
|