diff options
| author | Phil Christensen <philc@microsoft.com> | 2019-06-25 14:19:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-25 14:19:57 -0700 |
| commit | 1004b2ea11f67c59f2b3388ac4fb7947d0fa5e87 (patch) | |
| tree | db3aace67e67b010fb62bce88dd4e3f1a8ceda11 | |
| parent | b9764f8d89b4713fad3ff4573f2b7504ae79a771 (diff) | |
| download | vcpkg-1004b2ea11f67c59f2b3388ac4fb7947d0fa5e87.tar.gz vcpkg-1004b2ea11f67c59f2b3388ac4fb7947d0fa5e87.zip | |
[libmikmod] patch cmake warning (#7035)
* [libmikmod] Address cmake warnings
| -rw-r--r-- | ports/libmikmod/CONTROL | 2 | ||||
| -rw-r--r-- | ports/libmikmod/cmake_policy.patch | 13 | ||||
| -rw-r--r-- | ports/libmikmod/portfile.cmake | 1 |
3 files changed, 15 insertions, 1 deletions
diff --git a/ports/libmikmod/CONTROL b/ports/libmikmod/CONTROL index 57d399a26..6a02a4ae4 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 000000000..17d48278a --- /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 3ff7ecb52..1ec5d6773 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( |
