mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 07:17:50 +08:00
dd1baa1301
<!-- If your PR fixes issues, please note that here by adding "Fixes #NNNNNN." for each fixed issue on separate lines. --> <!-- If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/. --> - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [x] The "supports" clause reflects platforms that may be fixed by this new version. - [x] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [x] Any patches that are no longer applied are deleted from the port's directory. - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file. <!-- If this PR adds a new port, please uncomment and fill out this checklist: - [ ] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ ] The name of the port matches an existing name for this component on https://repology.org/ if possible, and/or is strongly associated with that component on search engines. - [ ] Optional dependencies are resolved in exactly one way. For example, if the component is built with CMake, all `find_package` calls are REQUIRED, are satisfied by `vcpkg.json`'s declared dependencies, or disabled with [CMAKE_DISABLE_FIND_PACKAGE_Xxx](https://cmake.org/cmake/help/latest/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html). - [ ] The versioning scheme in `vcpkg.json` matches what upstream says. - [ ] The license declaration in `vcpkg.json` matches what upstream says. - [ ] The installed as the "copyright" file matches what upstream says. - [ ] The source code of the component installed comes from an authoritative source. - [ ] The generated "usage text" is accurate. See [adding-usage](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/adding-usage.md) for context. - [ ] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [ ] Only one version is in the new port's versions file. - [ ] Only one version is added to each modified port's versions file. END OF NEW PORT CHECKLIST (delete this line) --> --- 1. Apologies for the _huge_ PR, but these packages are interdependent, making it difficult to separate them into individual PRs. 2. The main focus of this PR is to update the following ports: folly, fizz, wangle, proxygen, mvfst, and fbthrift. Additionally, rsocket needs to be updated due to its reliance on folly. It is concerning that rsocket has not been updated since 2021, while folly is actively developed and maintained. 3. This PR also consolidates some patches into a single one, as some patches modify the same file. 4. I need to include the cachelib package in the CI baseline file because it depends on the libaio system package. I can achieve a successful build locally when libaio is installed. Note that cachelib is also updated to the latest available version. ``` $ sudo apt search libaio Sorting... Done Full Text Search... Done libaio-dev/mantic,now 0.3.113-5 amd64 [installed] Linux kernel AIO access library - development files libaio1/mantic,now 0.3.113-5 amd64 [installed,automatic] Linux kernel AIO access library - shared library $ vcpkg install cachelib Computing installation plan... The following packages will be built and installed: cachelib:x64-linux@2024.04.15.00 * fbthrift:x64-linux@2024.04.15.00 * fizz:x64-linux@2024.04.15.00 * folly[core,libaio,zlib]:x64-linux@2024.04.15.00 * mvfst:x64-linux@2024.04.15.00 * wangle:x64-linux@2024.04.15.00 Additional packages (*) will be modified to complete this operation. Detecting compiler hash for triplet x64-linux... Restored 0 package(s) from /home/miao/.cache/vcpkg/archives in 14.9 us. Use --debug to see more details. Installing 1/6 folly[core,libaio,zlib]:x64-linux@2024.04.15.00... Building folly[core,libaio,zlib]:x64-linux@2024.04.15.00... -- Using cached facebook-folly-v2024.04.15.00.tar.gz. -- Cleaning sources at /home/miao/vcpkg/buildtrees/folly/src/4.04.15.00-b80a213ee9.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source /home/miao/vcpkg/downloads/facebook-folly-v2024.04.15.00.tar.gz -- Applying patch disable-non-underscore-posix-names.patch -- Applying patch boost-1.70.patch -- Applying patch fix-windows-minmax.patch -- Applying patch fix-deps.patch -- Applying patch disable-uninitialized-resize-on-new-stl.patch -- Applying patch fix-unistd-include.patch -- Using source at /home/miao/vcpkg/buildtrees/folly/src/4.04.15.00-b80a213ee9.clean -- Found external ninja('1.11.1'). -- Configuring x64-linux -- Building x64-linux-dbg -- Building x64-linux-rel -- Installing: /home/miao/vcpkg/packages/folly_x64-linux/share/folly/copyright -- Fixing pkgconfig file: /home/miao/vcpkg/packages/folly_x64-linux/lib/pkgconfig/libfolly.pc -- Fixing pkgconfig file: /home/miao/vcpkg/packages/folly_x64-linux/debug/lib/pkgconfig/libfolly.pc -- Performing post-build validation Stored binaries in 1 destinations in 17 s. Elapsed time to handle folly:x64-linux: 6.3 min folly:x64-linux package ABI: ce6dd8349631a07b047b6242099b65accab633afe713705b0da435414bc119c2 Installing 2/6 fizz:x64-linux@2024.04.15.00... Building fizz:x64-linux@2024.04.15.00... -- Using cached facebookincubator-fizz-v2024.04.15.00.tar.gz. -- Cleaning sources at /home/miao/vcpkg/buildtrees/fizz/src/4.04.15.00-d535f4a534.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source /home/miao/vcpkg/downloads/facebookincubator-fizz-v2024.04.15.00.tar.gz -- Applying patch fix-build.patch -- Using source at /home/miao/vcpkg/buildtrees/fizz/src/4.04.15.00-d535f4a534.clean -- Found external ninja('1.11.1'). -- Configuring x64-linux -- Building x64-linux-dbg -- Building x64-linux-rel -- Installing: /home/miao/vcpkg/packages/fizz_x64-linux/share/fizz/copyright -- Performing post-build validation Stored binaries in 1 destinations in 3.1 s. Elapsed time to handle fizz:x64-linux: 2 min fizz:x64-linux package ABI: 844ba8f534cdb73330de3ba6c4c7429635035d093395152a1bb7daeb4cd3f511 Installing 3/6 mvfst:x64-linux@2024.04.15.00... Building mvfst:x64-linux@2024.04.15.00... -- Using cached facebook-mvfst-v2024.04.15.00.tar.gz. -- Cleaning sources at /home/miao/vcpkg/buildtrees/mvfst/src/4.04.15.00-aab79f192b.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source /home/miao/vcpkg/downloads/facebook-mvfst-v2024.04.15.00.tar.gz -- Using source at /home/miao/vcpkg/buildtrees/mvfst/src/4.04.15.00-aab79f192b.clean -- Found external ninja('1.11.1'). -- Configuring x64-linux -- Building x64-linux-dbg -- Building x64-linux-rel -- Installing: /home/miao/vcpkg/packages/mvfst_x64-linux/share/mvfst/copyright -- Performing post-build validation Stored binaries in 1 destinations in 9.3 s. Elapsed time to handle mvfst:x64-linux: 5.4 min mvfst:x64-linux package ABI: 742b1e47a5108adac566ae4ad787e73fb4ac3d1dac7c0ab290056a8884ec8585 Installing 4/6 wangle:x64-linux@2024.04.15.00... Building wangle:x64-linux@2024.04.15.00... -- Using cached facebook-wangle-v2024.04.15.00.tar.gz. -- Cleaning sources at /home/miao/vcpkg/buildtrees/wangle/src/4.04.15.00-d032e08eb3.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source /home/miao/vcpkg/downloads/facebook-wangle-v2024.04.15.00.tar.gz -- Applying patch fix-config-cmake.patch -- Applying patch fix_dependency.patch -- Using source at /home/miao/vcpkg/buildtrees/wangle/src/4.04.15.00-d032e08eb3.clean -- Found external ninja('1.11.1'). -- Configuring x64-linux -- Building x64-linux-dbg -- Building x64-linux-rel -- Installing: /home/miao/vcpkg/packages/wangle_x64-linux/share/wangle/usage -- Installing: /home/miao/vcpkg/packages/wangle_x64-linux/share/wangle/copyright -- Performing post-build validation Stored binaries in 1 destinations in 2 s. Elapsed time to handle wangle:x64-linux: 1.4 min wangle:x64-linux package ABI: 25eecbd80463fb623b986e0a839d936bdb7ce84418cfbb122b7c6a18f9298da8 Installing 5/6 fbthrift:x64-linux@2024.04.15.00... Building fbthrift:x64-linux@2024.04.15.00... -- Using cached facebook-fbthrift-v2024.04.15.00.tar.gz. -- Cleaning sources at /home/miao/vcpkg/buildtrees/fbthrift/src/4.04.15.00-676cd7c3b0.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source /home/miao/vcpkg/downloads/facebook-fbthrift-v2024.04.15.00.tar.gz -- Applying patch fix-glog.patch -- Applying patch 0002-fix-dependency.patch -- Using source at /home/miao/vcpkg/buildtrees/fbthrift/src/4.04.15.00-676cd7c3b0.clean -- Found external ninja('1.11.1'). -- Configuring x64-linux -- Building x64-linux-dbg -- Building x64-linux-rel -- Installing: /home/miao/vcpkg/packages/fbthrift_x64-linux/share/fbthrift/copyright -- Adjusted RPATH of '/home/miao/vcpkg/packages/fbthrift_x64-linux/tools/fbthrift/thrift1' (From '/home/miao/vcpkg/packages/fbthrift_x64-linux/lib' -> To '$ORIGIN:$ORIGIN/../../lib') -- Performing post-build validation Stored binaries in 1 destinations in 22 s. Elapsed time to handle fbthrift:x64-linux: 16 min fbthrift:x64-linux package ABI: 1bc7f81cd065c797e1272ed12b0d101f500ec31707185b183489f16e17224410 Installing 6/6 cachelib:x64-linux@2024.04.15.00... Building cachelib:x64-linux@2024.04.15.00... -- Using cached facebook-CacheLib-v2024.04.15.00.tar.gz. -- Cleaning sources at /home/miao/vcpkg/buildtrees/cachelib/src/4.04.15.00-467d8fff12.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source /home/miao/vcpkg/downloads/facebook-CacheLib-v2024.04.15.00.tar.gz -- Applying patch fix-build.patch -- Applying patch fix-glog.patch -- Using source at /home/miao/vcpkg/buildtrees/cachelib/src/4.04.15.00-467d8fff12.clean -- Found external ninja('1.11.1'). -- Configuring x64-linux -- Building x64-linux-dbg -- Building x64-linux-rel -- Installing: /home/miao/vcpkg/packages/cachelib_x64-linux/share/cachelib/copyright -- Performing post-build validation Stored binaries in 1 destinations in 9.2 s. Elapsed time to handle cachelib:x64-linux: 6.8 min cachelib:x64-linux package ABI: eb476b6caf2174b1be9ef3564cc9ba66c4ca2bc11e44545b090f5e3349669704 Total install time: 38 min cachelib provides CMake targets: # this is heuristically generated, and may not be correct find_package(cachelib CONFIG REQUIRED) # note: 2 additional targets are not displayed. target_link_libraries(main PRIVATE cachelib cachelib_shm cachelib_navy cachelib_common) ```
221 lines
7.3 KiB
Diff
221 lines
7.3 KiB
Diff
diff --git a/CMake/folly-config.cmake.in b/CMake/folly-config.cmake.in
|
|
index 0b96f0a10..1559f9f70 100644
|
|
--- a/CMake/folly-config.cmake.in
|
|
+++ b/CMake/folly-config.cmake.in
|
|
@@ -29,10 +29,30 @@ endif()
|
|
set(FOLLY_LIBRARIES Folly::folly)
|
|
|
|
# Find folly's dependencies
|
|
-find_dependency(fmt)
|
|
+find_dependency(fmt CONFIG)
|
|
+find_dependency(double-conversion CONFIG)
|
|
+find_dependency(glog CONFIG)
|
|
+find_dependency(gflags CONFIG)
|
|
+find_dependency(Libevent CONFIG)
|
|
+if (NOT @CMAKE_DISABLE_FIND_PACKAGE_Zstd@)
|
|
+ find_dependency(zstd CONFIG)
|
|
+endif()
|
|
+if (@CMAKE_REQUIRE_FIND_PACKAGE_ZLIB@)
|
|
+ find_dependency(ZLIB MODULE)
|
|
+endif()
|
|
+find_dependency(OpenSSL MODULE)
|
|
+if (NOT @CMAKE_DISABLE_FIND_PACKAGE_unofficial-sodium@)
|
|
+ find_dependency(unofficial-sodium CONFIG)
|
|
+endif()
|
|
+if (NOT @CMAKE_DISABLE_FIND_PACKAGE_Snappy@)
|
|
+ find_dependency(Snappy CONFIG)
|
|
+endif()
|
|
+if (NOT @CMAKE_DISABLE_FIND_PACKAGE_LZ4@)
|
|
+ find_dependency(lz4 CONFIG)
|
|
+endif()
|
|
|
|
set(Boost_USE_STATIC_LIBS "@FOLLY_BOOST_LINK_STATIC@")
|
|
-find_dependency(Boost 1.51.0 MODULE
|
|
+find_dependency(Boost
|
|
COMPONENTS
|
|
context
|
|
filesystem
|
|
diff --git a/CMake/folly-deps.cmake b/CMake/folly-deps.cmake
|
|
index 41a513a30..32c8826ae 100644
|
|
--- a/CMake/folly-deps.cmake
|
|
+++ b/CMake/folly-deps.cmake
|
|
@@ -35,7 +35,7 @@ else()
|
|
endif()
|
|
set(Boost_USE_STATIC_LIBS "${FOLLY_BOOST_LINK_STATIC}")
|
|
|
|
-find_package(Boost 1.51.0 MODULE
|
|
+find_package(Boost
|
|
COMPONENTS
|
|
context
|
|
filesystem
|
|
@@ -45,37 +45,37 @@ find_package(Boost 1.51.0 MODULE
|
|
thread
|
|
REQUIRED
|
|
)
|
|
+set(Boost_LIBRARIES Boost::boost Boost::context Boost::filesystem Boost::program_options Boost::regex Boost::system Boost::thread)
|
|
list(APPEND FOLLY_LINK_LIBRARIES ${Boost_LIBRARIES})
|
|
-list(APPEND FOLLY_INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIRS})
|
|
-
|
|
-find_package(DoubleConversion MODULE REQUIRED)
|
|
-list(APPEND FOLLY_LINK_LIBRARIES ${DOUBLE_CONVERSION_LIBRARY})
|
|
-list(APPEND FOLLY_INCLUDE_DIRECTORIES ${DOUBLE_CONVERSION_INCLUDE_DIR})
|
|
-
|
|
-find_package(Gflags MODULE)
|
|
-set(FOLLY_HAVE_LIBGFLAGS ${LIBGFLAGS_FOUND})
|
|
-if(LIBGFLAGS_FOUND)
|
|
- list(APPEND FOLLY_LINK_LIBRARIES ${LIBGFLAGS_LIBRARY})
|
|
- list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBGFLAGS_INCLUDE_DIR})
|
|
- set(FOLLY_LIBGFLAGS_LIBRARY ${LIBGFLAGS_LIBRARY})
|
|
- set(FOLLY_LIBGFLAGS_INCLUDE ${LIBGFLAGS_INCLUDE_DIR})
|
|
-endif()
|
|
|
|
-find_package(Glog MODULE)
|
|
-set(FOLLY_HAVE_LIBGLOG ${GLOG_FOUND})
|
|
-list(APPEND FOLLY_LINK_LIBRARIES ${GLOG_LIBRARY})
|
|
-list(APPEND FOLLY_INCLUDE_DIRECTORIES ${GLOG_INCLUDE_DIR})
|
|
+find_package(double-conversion CONFIG REQUIRED)
|
|
+list(APPEND FOLLY_LINK_LIBRARIES double-conversion::double-conversion)
|
|
|
|
-find_package(LibEvent MODULE REQUIRED)
|
|
-list(APPEND FOLLY_LINK_LIBRARIES ${LIBEVENT_LIB})
|
|
-list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBEVENT_INCLUDE_DIR})
|
|
+find_package(glog CONFIG REQUIRED)
|
|
+set(FOLLY_HAVE_LIBGLOG 1)
|
|
+list(APPEND FOLLY_LINK_LIBRARIES glog::glog)
|
|
|
|
-find_package(ZLIB MODULE)
|
|
-set(FOLLY_HAVE_LIBZ ${ZLIB_FOUND})
|
|
-if (ZLIB_FOUND)
|
|
- list(APPEND FOLLY_INCLUDE_DIRECTORIES ${ZLIB_INCLUDE_DIRS})
|
|
- list(APPEND FOLLY_LINK_LIBRARIES ${ZLIB_LIBRARIES})
|
|
- list(APPEND CMAKE_REQUIRED_LIBRARIES ${ZLIB_LIBRARIES})
|
|
+find_package(gflags CONFIG)
|
|
+if(TARGET gflags::gflags)
|
|
+ set(FOLLY_HAVE_LIBGFLAGS 1)
|
|
+ list(APPEND FOLLY_LINK_LIBRARIES gflags::gflags)
|
|
+ set(FOLLY_LIBGFLAGS_LIBRARY gflags::gflags)
|
|
+endif()
|
|
+
|
|
+find_package(Libevent CONFIG REQUIRED)
|
|
+list(APPEND FOLLY_LINK_LIBRARIES libevent::core libevent::extra)
|
|
+if(NOT WIN32)
|
|
+ list(APPEND FOLLY_LINK_LIBRARIES libevent::pthreads)
|
|
+endif()
|
|
+
|
|
+if (CMAKE_REQUIRE_FIND_PACKAGE_ZLIB)
|
|
+ find_package(ZLIB MODULE REQUIRED)
|
|
+ set(FOLLY_HAVE_LIBZ ${ZLIB_FOUND})
|
|
+ if (ZLIB_FOUND)
|
|
+ list(APPEND FOLLY_INCLUDE_DIRECTORIES ${ZLIB_INCLUDE_DIRS})
|
|
+ list(APPEND FOLLY_LINK_LIBRARIES ${ZLIB_LIBRARIES})
|
|
+ list(APPEND CMAKE_REQUIRED_LIBRARIES ${ZLIB_LIBRARIES})
|
|
+ endif()
|
|
endif()
|
|
|
|
find_package(OpenSSL 1.1.1 MODULE REQUIRED)
|
|
@@ -103,25 +103,29 @@ if (LIBLZMA_FOUND)
|
|
list(APPEND FOLLY_LINK_LIBRARIES ${LIBLZMA_LIBRARIES})
|
|
endif()
|
|
|
|
-find_package(LZ4 MODULE)
|
|
-set(FOLLY_HAVE_LIBLZ4 ${LZ4_FOUND})
|
|
-if (LZ4_FOUND)
|
|
- list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LZ4_INCLUDE_DIR})
|
|
- list(APPEND FOLLY_LINK_LIBRARIES ${LZ4_LIBRARY})
|
|
+if(NOT CMAKE_DISABLE_FIND_PACKAGE_LZ4)
|
|
+ find_package(lz4 CONFIG)
|
|
+ if(TARGET lz4::lz4)
|
|
+ list(APPEND FOLLY_LINK_LIBRARIES lz4::lz4)
|
|
+ endif()
|
|
endif()
|
|
|
|
-find_package(Zstd MODULE)
|
|
-set(FOLLY_HAVE_LIBZSTD ${ZSTD_FOUND})
|
|
-if(ZSTD_FOUND)
|
|
- list(APPEND FOLLY_INCLUDE_DIRECTORIES ${ZSTD_INCLUDE_DIR})
|
|
- list(APPEND FOLLY_LINK_LIBRARIES ${ZSTD_LIBRARY})
|
|
+if(NOT CMAKE_DISABLE_FIND_PACKAGE_Zstd)
|
|
+ find_package(zstd CONFIG)
|
|
+ if(TARGET zstd::libzstd_shared )
|
|
+ set(FOLLY_HAVE_LIBZSTD 1)
|
|
+ list(APPEND FOLLY_LINK_LIBRARIES zstd::libzstd_shared)
|
|
+ elseif( TARGET zstd::libzstd_static )
|
|
+ set(FOLLY_HAVE_LIBZSTD 1)
|
|
+ list(APPEND FOLLY_LINK_LIBRARIES zstd::libzstd_static)
|
|
+ endif()
|
|
endif()
|
|
|
|
-find_package(Snappy MODULE)
|
|
-set(FOLLY_HAVE_LIBSNAPPY ${SNAPPY_FOUND})
|
|
-if (SNAPPY_FOUND)
|
|
- list(APPEND FOLLY_INCLUDE_DIRECTORIES ${SNAPPY_INCLUDE_DIR})
|
|
- list(APPEND FOLLY_LINK_LIBRARIES ${SNAPPY_LIBRARY})
|
|
+if(NOT CMAKE_DISABLE_FIND_PACKAGE_Snappy)
|
|
+ find_package(Snappy CONFIG)
|
|
+ if(TARGET Snappy::snappy)
|
|
+ list(APPEND FOLLY_LINK_LIBRARIES Snappy::snappy)
|
|
+ endif()
|
|
endif()
|
|
|
|
find_package(LibDwarf)
|
|
@@ -132,17 +136,24 @@ find_package(Libiberty)
|
|
list(APPEND FOLLY_LINK_LIBRARIES ${LIBIBERTY_LIBRARIES})
|
|
list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBIBERTY_INCLUDE_DIRS})
|
|
|
|
-find_package(LibAIO)
|
|
-list(APPEND FOLLY_LINK_LIBRARIES ${LIBAIO_LIBRARIES})
|
|
-list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBAIO_INCLUDE_DIRS})
|
|
+if(WITH_libaio)
|
|
+ find_package(LibAIO)
|
|
+ list(APPEND FOLLY_LINK_LIBRARIES ${LIBAIO_LIBRARIES})
|
|
+ list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBAIO_INCLUDE_DIRS})
|
|
+endif()
|
|
|
|
-find_package(LibUring)
|
|
-list(APPEND FOLLY_LINK_LIBRARIES ${LIBURING_LIBRARIES})
|
|
-list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBURING_INCLUDE_DIRS})
|
|
+if(WITH_liburing)
|
|
+ find_package(LibUring)
|
|
+ list(APPEND FOLLY_LINK_LIBRARIES ${LIBURING_LIBRARIES})
|
|
+ list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBURING_INCLUDE_DIRS})
|
|
+endif()
|
|
|
|
-find_package(Libsodium)
|
|
-list(APPEND FOLLY_LINK_LIBRARIES ${LIBSODIUM_LIBRARIES})
|
|
-list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBSODIUM_INCLUDE_DIRS})
|
|
+if(NOT CMAKE_DISABLE_FIND_PACKAGE_unofficial-sodium)
|
|
+ find_package(unofficial-sodium CONFIG)
|
|
+ if(TARGET unofficial-sodium::sodium)
|
|
+ list(APPEND FOLLY_LINK_LIBRARIES unofficial-sodium::sodium)
|
|
+ endif()
|
|
+endif()
|
|
|
|
list(APPEND FOLLY_LINK_LIBRARIES ${CMAKE_DL_LIBS})
|
|
list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_DL_LIBS})
|
|
@@ -153,10 +164,10 @@ if (PYTHON_EXTENSIONS)
|
|
endif ()
|
|
|
|
find_package(LibUnwind)
|
|
-list(APPEND FOLLY_LINK_LIBRARIES ${LIBUNWIND_LIBRARIES})
|
|
-list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBUNWIND_INCLUDE_DIRS})
|
|
if (LIBUNWIND_FOUND)
|
|
set(FOLLY_HAVE_LIBUNWIND ON)
|
|
+ list(APPEND FOLLY_LINK_LIBRARIES ${LIBUNWIND_LIBRARIES})
|
|
+ list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBUNWIND_INCLUDE_DIRS})
|
|
endif()
|
|
if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
|
list(APPEND FOLLY_LINK_LIBRARIES "execinfo")
|
|
@@ -298,11 +309,7 @@ endif()
|
|
|
|
add_library(folly_deps INTERFACE)
|
|
|
|
-find_package(fmt CONFIG)
|
|
-if (NOT DEFINED fmt_CONFIG)
|
|
- # Fallback on a normal search on the current system
|
|
- find_package(Fmt MODULE REQUIRED)
|
|
-endif()
|
|
+find_package(fmt CONFIG REQUIRED)
|
|
target_link_libraries(folly_deps INTERFACE fmt::fmt)
|
|
|
|
list(REMOVE_DUPLICATES FOLLY_INCLUDE_DIRECTORIES)
|