Conditional cmake policy CMP0003 and CMP0042

This commit is contained in:
Nigel Stewart 2018-10-13 14:07:01 +10:00
parent 40fbbe826c
commit 8b2d34956c

View File

@ -8,8 +8,11 @@ cmake_minimum_required (VERSION 2.8.12)
include(GNUInstallDirs)
if (COMMAND cmake_policy)
if(POLICY CMP0003)
cmake_policy (SET CMP0003 NEW)
endif()
if(POLICY CMP0042)
cmake_policy (SET CMP0042 NEW)
endif()