From 3f557be6080028f0766e7f739dde12087b8e5b2c Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Sat, 5 Apr 2014 20:51:40 +0900 Subject: [PATCH] Suppressed the warning "Policy CMP0022 is not set" on CMake 2.8.12. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a675024..a27b2f6e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,10 @@ project(taglib) cmake_minimum_required(VERSION 2.8.0 FATAL_ERROR) +if(NOT ${CMAKE_VERSION} VERSION_LESS 2.8.12) + cmake_policy(SET CMP0022 OLD) +endif() + option(ENABLE_STATIC "Make static version of libtag" OFF) if(ENABLE_STATIC) add_definitions(-DTAGLIB_STATIC)