protect cmake_policy

This commit is contained in:
James Cherry 2020-01-28 03:45:29 +00:00
parent 166f2234c8
commit da7a706ee8
1 changed files with 2 additions and 0 deletions

View File

@ -15,10 +15,12 @@
# 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)
# 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)