aboutsummaryrefslogtreecommitdiff
path: root/ports/yomm2/fix_find_boost.patch
diff options
context:
space:
mode:
authorFabien Péan <fabien@pean.pro>2021-05-26 19:33:43 +0200
committerGitHub <noreply@github.com>2021-05-26 10:33:43 -0700
commit5c847acb56e4ef228e036e7cd84fb71c84edd456 (patch)
treec62fd132aa93ead83fddb53ee2ad45eb7db5c5b4 /ports/yomm2/fix_find_boost.patch
parentce6253b6f4caa3141696391ada995af09d527e9f (diff)
downloadvcpkg-5c847acb56e4ef228e036e7cd84fb71c84edd456.tar.gz
vcpkg-5c847acb56e4ef228e036e7cd84fb71c84edd456.zip
[yomm2] new port (#17886)
Diffstat (limited to 'ports/yomm2/fix_find_boost.patch')
-rw-r--r--ports/yomm2/fix_find_boost.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/ports/yomm2/fix_find_boost.patch b/ports/yomm2/fix_find_boost.patch
new file mode 100644
index 000000000..f5b167083
--- /dev/null
+++ b/ports/yomm2/fix_find_boost.patch
@@ -0,0 +1,26 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b7b88b1..02297e7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -11,7 +11,7 @@ project(YOMM2 VERSION 1.0)
+ # Find Boost dependency
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
+ include(find_or_download_package)
+-find_or_download_package(Boost INSTALL_WITH_YOMM)
++find_package(Boost REQUIRED)
+ message(STATUS "Using Boost libraries from ${Boost_INCLUDE_DIRS}")
+
+ if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+diff --git a/cmake/Config.cmake.in b/cmake/Config.cmake.in
+index 7272504..9f8b2ae 100644
+--- a/cmake/Config.cmake.in
++++ b/cmake/Config.cmake.in
+@@ -1,7 +1,7 @@
+ include(CMakeFindDependencyMacro)
+
+ # Tell library users about the Boost dependency
+-find_dependency(Boost 1.53 HINTS ${CMAKE_CURRENT_LIST_DIR}/..)
++find_dependency(Boost 1.53)
+
+ # Add the targets file
+ include("${CMAKE_CURRENT_LIST_DIR}/YOMM2Targets.cmake")