(cmake): conan cmake script not correctly downloaded
Summary
- Conan cmake script is downloaded on Github and is stored in build directory
- Sight cmake script checks if the file is present to avoid downloading it again.
- But if there is a problem on Github and the file is not properly downloaded, the sight cmake script will never re-download the file.
Steps to reproduce
Put a corrupted (empty) conan.cmake
file in your build directory of sight
Dev environment
- OS: Linux Mint19
- CMake version: 3.17.1
- Compiler: gcc8
- Build type: debug
- Commit: dev
What is the current bug behavior?
The file is never re-downloaded
What is the expected correct behavior?
The file must be downloaded if it's not correct.
Possible fixes
Add the check the file hash in the cmake DOWNLOAD
command.