【发布时间】:2018-11-30 23:38:38
【问题描述】:
我正在尝试构建 folly 库,这是一个 c++ 库,并尝试通过 vcpkg 安装它。
它下载了所有的依赖并安装了依赖的boost库。
但它在安装愚蠢的最后一步中给出了错误。
我使用了以下命令:
.\vcpkg.exe install folly:x64-windows
它给出了以下错误:
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
Command failed: ninja;-v
Working Directory: D:/C++Examples/Vcpkg/buildtrees/folly/x64-windows-rel/vcpkg-parallel-configure
See logs for more information:
D:\C++Examples\Vcpkg\buildtrees\folly\config-x64-windows-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:237 (vcpkg_execute_required_process)
ports/folly/portfile.cmake:57 (vcpkg_configure_cmake)
scripts/ports.cmake:72 (include)
Error: Building package folly:x64-windows failed with: BUILD_FAILED
这里是问题的日志文件级别详细信息:
CMake Error at CMake/FollyFunctions.cmake:81 (if):
if given arguments:
"D:/C++Examples/Vcpkg/buildtrees/folly/src/8.05.14.00-e96738be27/folly/Benchmark.cpp" "MATCHES" "^D:/C++Examples/Vcpkg/buildtrees/folly/src/8.05.14.00-e96738be27/folly/build/"
Regular expression
"^D:/C++Examples/Vcpkg/buildtrees/folly/src/8.05.14.00-e96738be27/folly/build/"
cannot compile
Call Stack (most recent call first):
CMakeLists.txt:101 (REMOVE_MATCHES_FROM_LISTS)
你知道我该如何处理这个问题吗?
【问题讨论】:
-
看起来项目的
CMakeLists.txt期望路径不包含特定于正则表达式的字符,但您的路径确实:“+”对于正则表达式具有特殊含义。尝试使用其他路径,其中没有“+”字符。 -
你救了一条命 :) 你能否提供评论作为答案,以便我结束这个问题
标签: c++ visual-c++ cmake folly vcpkg