TartanLlama / expected

C++11/14/17 std::expected with functional-style extensions

Home Page:https://tl.tartanllama.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build fails on MSVC

emmenlau opened this issue · comments

Dear @TartanLlama ,
we've been able to build expected for the better part of a year without problems. Suddenly it fails, possibly due to an update of cmake to 3.20.2.

The error we're getting seems in some way related to tl_cmake and git. Here is what we see:

[...]
Your branch is up to date with 'origin/master'.
[2/9] cmd.exe /C "cd /D C:\data\Debug\expected\_deps\tl_cmake-src && C:\data\Tools\bin\cmake.exe -P C:/data/Debug/expected/_deps/tl_cmake-subbuild/tl_cmake-populate-prefix/tmp/tl_cmake-populate-gitupdate.cmake"
CMake Error at C:/data/Debug/expected/_deps/tl_cmake-subbuild/tl_cmake-populate-prefix/tmp/tl_cmake-populate-gitupdate.cmake:25 (message):
  Failed to get the hash for HEAD:
  fatal: ambiguous argument 'HEAD^commit': unknown revision or path not in
  the working tree.
  Use '--' to separate paths from revisions, like this:
  'git <command> [<revision>...] -- [<file>...]'
FAILED: tl_cmake-populate-prefix/src/tl_cmake-populate-stamp/tl_cmake-populate-update 
cmd.exe /C "cd /D C:\data\Debug\expected\_deps\tl_cmake-src && C:\data\Tools\bin\cmake.exe -P C:/data/Debug/expected/_deps/tl_cmake-subbuild/tl_cmake-populate-prefix/tmp/tl_cmake-populate-gitupdate.cmake"
ninja: build stopped: subcommand failed.
CMake Error at C:/data/Tools/share/cmake-3.20/Modules/FetchContent.cmake:1012 (message):
  Build step for tl_cmake failed: 1
Call Stack (most recent call first):
  C:/data/Tools/share/cmake-3.20/Modules/FetchContent.cmake:1141:EVAL:2 (__FetchContent_directPopulate)
  C:/data/Tools/share/cmake-3.20/Modules/FetchContent.cmake:1141 (cmake_language)
  CMakeLists.txt:14 (FetchContent_Populate)
-- Configuring incomplete, errors occurred!