xmos / xcommon_cmake

6 stars 5 forks source link

cmake file is overwritten if an error is encountered #133

Open ed-xmos opened 6 months ago

ed-xmos commented 6 months ago

The cmake file where the error occurs (in this case deps.cmake) gets overwritten by a previously saved version. The error was fetching an invalid repo:

if(NOT EXISTS ${XMOS_SANDBOX_DIR}/sw_usb_audio) include(FetchContent) FetchContent_Declare( sw_usb_audio GIT_REPOSITORY git@github.com:xmos/sw_usb_audiofkdjhfkdjfhje GIT_TAG feature/xcommon_cmake SOURCE_DIR ${XMOS_SANDBOX_DIR}/sw_usb_audio ) FetchContent_Populate(sw_usb_audio) endif()

Currently I cannot reproduce this (although it happened several times) so I will re-visit if it happens again

xross commented 6 months ago

sw_usb_audiofkdjhfkdjfhje

is this an intentional mistake? i.e. causing the error?