facebook / facebook/folly

Could not find a package configuration file provided by "glog"

Open
#1,471 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
30.5k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Description

Installed Facebook's folly using `vcpkg ` by using following command,

`vcpkg install folly:x64-windows`

Then, tried to run `cmake ` for below C++ file,

```
#include
#include

int main() {
folly::fbstring greet = "Hello World";
std::cout << greet << "\n";
}
```

Using following `cmake ` file,

```
cmake_minimum_required(VERSION 3.17)
project(TestingFolly)

SET(CMAKE_TOOLCHAIN_FILE "C:/vcpkg/scripts/buildsystems/vcpkg.cmake")

find_package(folly CONFIG REQUIRED)

set(CMAKE_CXX_STANDARD 17)

add_executable(ProxyServer ProxyServer.cpp)
target_link_libraries(main PRIVATE Folly::folly Folly::folly_deps Folly::follybenchmark Folly::folly_test_util)
```

However, cmake fails with below error,

```
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
Could not find a package configuration file provided by "glog" with any of
the following names:

glogConfig.cmake
glog-config.cmake

Add the installation prefix of "glog" to CMAKE_PREFIX_PATH or set
"glog_DIR" to a directory containing one of the above files. If "glog"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
C:/vcpkg/packages/folly_x64-windows/share/folly/folly-config.cmake:3 (find_dependency)
CMakeLists.txt:6 (find_package)

```

According to a system inspection, the glog has been installed to following DIR,

`C:\vcpkg\installed\x86-windows\share\glog
`
I'm unsure what to do at this point.

`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.