aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-12-20 23:55:38 -0800
committerRobert Schumacher <roschuma@microsoft.com>2017-12-20 23:55:38 -0800
commitb7ce0db27fa482bddbbdafa06d85ba179bf42ed6 (patch)
treee99cbfd885c77b98257e8c748d9e6ddd29d0a0cf /ports
parent1e7b70493976c9e4f822adcb95fcc307a3f548a4 (diff)
downloadvcpkg-b7ce0db27fa482bddbbdafa06d85ba179bf42ed6.tar.gz
vcpkg-b7ce0db27fa482bddbbdafa06d85ba179bf42ed6.zip
[folly] Handle boost upgrade
Diffstat (limited to 'ports')
-rw-r--r--ports/folly/CONTROL2
-rw-r--r--ports/folly/cmake-link-boost-fix.cmake35
-rw-r--r--ports/folly/portfile.cmake6
3 files changed, 42 insertions, 1 deletions
diff --git a/ports/folly/CONTROL b/ports/folly/CONTROL
index dfd4b833e..cc3678039 100644
--- a/ports/folly/CONTROL
+++ b/ports/folly/CONTROL
@@ -1,4 +1,4 @@
Source: folly
-Version: 2017.11.27.00-1
+Version: 2017.11.27.00-2
Description: An open-source C++ library developed and used at Facebook. The library is UNSTABLE on Windows
Build-Depends: zlib, openssl, libevent, double-conversion, glog, gflags, lz4, liblzma, snappy, boost-context, boost-chrono, boost-date-time, boost-filesystem, boost-program-options, boost-regex, boost-system, boost-thread, boost-conversion, boost-multi-index, boost-crc
diff --git a/ports/folly/cmake-link-boost-fix.cmake b/ports/folly/cmake-link-boost-fix.cmake
new file mode 100644
index 000000000..7eb4574c4
--- /dev/null
+++ b/ports/folly/cmake-link-boost-fix.cmake
@@ -0,0 +1,35 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ec5a985c..36564534 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -136,13 +136,6 @@ source_group("folly\\build" FILES
+ )
+
+ set(FOLLY_SHINY_DEPENDENCIES
+- Boost::chrono
+- Boost::context
+- Boost::date_time
+- Boost::filesystem
+- Boost::program_options
+- Boost::regex
+- Boost::system
+ OpenSSL::SSL
+ OpenSSL::Crypto
+ )
+@@ -179,6 +172,7 @@ endif()
+
+ set(FOLLY_LINK_LIBRARIES
+ ${FOLLY_LINK_LIBRARIES}
++ ${Boost_LIBRARIES}
+ Iphlpapi.lib
+ Ws2_32.lib
+
+@@ -320,7 +314,7 @@ if (BUILD_TESTS)
+ )
+ target_link_libraries(folly_test_support
+ PUBLIC
+- Boost::thread
++ ${Boost_LIBRARIES}
+ folly
+ ${LIBGMOCK_LIBRARY}
+ )
diff --git a/ports/folly/portfile.cmake b/ports/folly/portfile.cmake
index fc3584860..77c8cecdf 100644
--- a/ports/folly/portfile.cmake
+++ b/ports/folly/portfile.cmake
@@ -22,6 +22,12 @@ vcpkg_from_github(
HEAD_REF master
)
+vcpkg_apply_patches(
+ SOURCE_PATH ${SOURCE_PATH}
+ PATCHES
+ ${CMAKE_CURRENT_LIST_DIR}/cmake-link-boost-fix.cmake
+)
+
if(VCPKG_CRT_LINKAGE STREQUAL static)
set(MSVC_USE_STATIC_RUNTIME ON)
else()