[libmikmod] patch cmake warning (#7035)

* [libmikmod] Address cmake warnings
This commit is contained in:
Phil Christensen 2019-06-25 14:19:57 -07:00 committed by GitHub
parent b9764f8d89
commit 1004b2ea11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View File

@ -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

View File

@ -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")

View File

@ -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(