]> granicus.if.org Git - taglib/commitdiff
Suppressed the warning "Policy CMP0022 is not set" on CMake 2.8.12.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Sat, 5 Apr 2014 11:51:40 +0000 (20:51 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Sat, 5 Apr 2014 12:08:21 +0000 (21:08 +0900)
CMakeLists.txt

index 7a6750246b4257ca18dd0d72abb699b35fcd3883..a27b2f6e7154c3c346871dfcd34b837cefd629cf 100644 (file)
@@ -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)