From da7a706ee84c64c3dada0b0b9fb35f45c3b55855 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Tue, 28 Jan 2020 03:45:29 +0000 Subject: [PATCH] protect cmake_policy --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 318b8c87..60848393 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,10 +15,12 @@ # along with this program. If not, see . cmake_minimum_required (VERSION 3.9) +if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.16.2) # Use standard target names cmake_policy(SET CMP0078 NEW) # Allows SWIG_MODULE_NAME to be set cmake_policy(SET CMP0086 NEW) +endif() project(STA VERSION 2.0.18)