Suppress CMake warning 26 - need to figure out the 'right' approach eventually, but for now this is needed with CMake 3.0

This commit is contained in:
Cliff Yapp 2014-08-17 23:04:24 -04:00
parent 03dbb8ee9f
commit 752f976475

View file

@ -54,6 +54,9 @@ set(SC_ABI_VERSION ${SC_ABI_SOVERSION}.0.0)
cmake_minimum_required(VERSION 2.8.7)
if(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
if ("${CMAKE_VERSION}" VERSION_GREATER 2.99)
CMAKE_POLICY(SET CMP0026 OLD)
endif ("${CMAKE_VERSION}" VERSION_GREATER 2.99)
endif(COMMAND CMAKE_POLICY)
# CMake derives much of its functionality from modules, typically