mirror of https://github.com/drowe67/librtlsdr.git
If the librtlsdr code comes from a tarball, it doesn't have any .git/ metadata, and therefore even if Git (as a tool) is found, the logic in cmake/Modules/Version.cmake fails finding a version through Git: -- Extracting version information from git describe... fatal: Not a git repository (or any of the parent directories): .git As a consequence, the VERSION variable is empty, which later causes cmake to bail out with: CMake Error at /home/test/autobuild/run/instance-1/output-1/host/share/cmake-3.15/Modules/WriteBasicConfigVersionFile.cmake:43 (message): No VERSION specified for WRITE_BASIC_CONFIG_VERSION_FILE() Call Stack (most recent call first): /home/test/autobuild/run/instance-1/output-1/host/share/cmake-3.15/Modules/CMakePackageConfigHelpers.cmake:225 (write_basic_config_version_file) CMakeLists.txt:173 (write_basic_package_version_file) To avoid this, we only use Git to determine the version if the cmake project top-level source directory has a .git/ folder. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit feb5d9c6b7bcec788f9b01781c205e31fff260e7) |
||
---|---|---|
.. | ||
Modules | ||
cmake_uninstall.cmake.in |