adjust cmake policy to match version introduced

This commit is contained in:
Matt Liberty 2020-01-31 19:24:22 -08:00
parent da7a706ee8
commit 17d600deda
1 changed files with 3 additions and 1 deletions

View File

@ -15,9 +15,11 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required (VERSION 3.9)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.16.2)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13)
# Use standard target names
cmake_policy(SET CMP0078 NEW)
endif()
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.14)
# Allows SWIG_MODULE_NAME to be set
cmake_policy(SET CMP0086 NEW)
endif()