Host Environment
- OS: wsl2 ubuntu20.04
- Compiler: gcc9
To Reproduce
Steps to reproduce the behavior:
./vcpkg install grpc
Failure logs
Install successfully :
...
The package grpc:x64-linux provides CMake targets:
find_package(gRPC CONFIG REQUIRED)
# Note: 7 target(s) were omitted.
target_link_libraries(main PRIVATE gRPC::gpr gRPC::grpc gRPC::grpc++ gRPC::grpc++_alts)
find_package(modules CONFIG REQUIRED)
target_link_libraries(main PRIVATE re2::re2 c-ares::cares)
Additional context
I add find_package(modules CONFIG REQUIRED) to CMakeLists.txt , I raise error :
[main] Configuring folder: test
[proc] Executing command: /usr/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/bin/gcc-9 -DCMAKE_CXX_COMPILER:FILEPATH=/bin/g++-9 -H/home/zhaodachuan/test -B/home/zhaodachuan/test/build -G "Unix Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] /home/zhaodachuan/test/vcpkg/scripts/buildsystems/vcpkg.cmake
[cmake] -- Found RE2 via CMake.
[cmake] CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:857 (_find_package):
[cmake] Could not find a package configuration file provided by "modules" with any
[cmake] of the following names:
[cmake]
[cmake] modulesConfig.cmake
[cmake] modules-config.cmake
[cmake]
[cmake] Add the installation prefix of "modules" to CMAKE_PREFIX_PATH or set
[cmake] "modules_DIR" to a directory containing one of the above files. If
[cmake] "modules" provides a separate development package or SDK, be sure it has
[cmake] been installed.
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:26 (find_package)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install grpcFailure logs
Install successfully :
Additional context
I add
find_package(modules CONFIG REQUIRED)to CMakeLists.txt , I raise error :