Closed DaanDeMeyer closed 4 years ago
Same problem when using the archive:
cmake_minimum_required(VERSION 3.15)
project(outcome-reproduce)
include(FetchContent)
FetchContent_Declare(
outcome
URL https://dedi5.nedprod.com/static/files/outcome-v2.0-source-latest.tar.xz
)
FetchContent_MakeAvailable(outcome)
Trying v2.1 in the url gave me a 404 so I'm assuming v2.0 is the latest archive available. The error here happens because CMake tries to get a git submodule which isn't available from the archive since it has no git information available.
When using FetchContent with git it crashes because some CMake script thinks an in-source build is happening even though FetchContent puts source and binary directories completely separate in the build folder.
Bug reproduced. Thanks for the BR.
Fixed. Thanks for the BR!
Reproduce: