From 1004b2ea11f67c59f2b3388ac4fb7947d0fa5e87 Mon Sep 17 00:00:00 2001 From: Phil Christensen Date: Tue, 25 Jun 2019 14:19:57 -0700 Subject: [PATCH] [libmikmod] patch cmake warning (#7035) * [libmikmod] Address cmake warnings --- ports/libmikmod/CONTROL | 2 +- ports/libmikmod/cmake_policy.patch | 13 +++++++++++++ ports/libmikmod/portfile.cmake | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 ports/libmikmod/cmake_policy.patch diff --git a/ports/libmikmod/CONTROL b/ports/libmikmod/CONTROL index 57d399a268e..6a02a4ae4f3 100644 --- a/ports/libmikmod/CONTROL +++ b/ports/libmikmod/CONTROL @@ -1,5 +1,5 @@ Source: libmikmod -Version: 3.3.11.1-2 +Version: 3.3.11.1-3 Homepage: https://sourceforge.net/projects/mikmod/ Description: Mikmod is a module player and library supporting many formats, including mod, s3m, it, and xm. Build-Depends: openal-soft diff --git a/ports/libmikmod/cmake_policy.patch b/ports/libmikmod/cmake_policy.patch new file mode 100644 index 00000000000..17d48278a36 --- /dev/null +++ b/ports/libmikmod/cmake_policy.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b4d31d3..67951e6 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -23,6 +23,8 @@ + # + # (This copyright notice applies only to this file) + ++cmake_policy(SET CMP0003 NEW) ++ + PROJECT(libmikmod C) + CMAKE_MINIMUM_REQUIRED(VERSION 2.8) + LIST(APPEND CMAKE_MODULE_PATH "${libmikmod_SOURCE_DIR}/cmake") diff --git a/ports/libmikmod/portfile.cmake b/ports/libmikmod/portfile.cmake index 3ff7ecb5281..1ec5d677399 100644 --- a/ports/libmikmod/portfile.cmake +++ b/ports/libmikmod/portfile.cmake @@ -23,6 +23,7 @@ vcpkg_extract_source_archive_ex( OUT_SOURCE_PATH SOURCE_PATH PATCHES fix-missing-dll.patch + cmake_policy.patch ) vcpkg_configure_cmake(