Commit 676fa1ed authored by Laurent Stacul's avatar Laurent Stacul Committed by Facebook GitHub Bot

Fix find file 'Findfmt' (#1462)

Summary:
Hello,

It seems I did a mistake in PR https://github.com/facebook/folly/issues/1328

CMake find_package directive looks for Find<PackageName>.cmake.
There is a mistake in the folly-deps.cmake leading to:

CMake Error at CMake/folly-deps.cmake:248 (find_package):
  No "Findfmt.cmake" found in CMAKE_MODULE_PATH.

Pull Request resolved: https://github.com/facebook/folly/pull/1462

Reviewed By: yfeldblum

Differential Revision: D24000731

Pulled By: Orvid

fbshipit-source-id: 2239750228f134776b57c794d04f65f69a92ed3a
parent 648bc92b
...@@ -246,7 +246,7 @@ add_library(folly_deps INTERFACE) ...@@ -246,7 +246,7 @@ add_library(folly_deps INTERFACE)
find_package(fmt CONFIG) find_package(fmt CONFIG)
if (NOT DEFINED fmt_CONFIG) if (NOT DEFINED fmt_CONFIG)
# Fallback on a normal search on the current system # Fallback on a normal search on the current system
find_package(fmt MODULE REQUIRED) find_package(Fmt MODULE REQUIRED)
endif() endif()
target_link_libraries(folly_deps INTERFACE fmt::fmt) target_link_libraries(folly_deps INTERFACE fmt::fmt)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment