浏览代码

Support git tag clone for conan

Patrick-Christopher Mattulat 4 年之前
父节点
当前提交
e3e308990c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      config/conanfile.py

+ 1 - 1
config/conanfile.py

@@ -14,7 +14,7 @@ class LsStdConan(ConanFile):
     generators = "cmake"
 
     def source(self):
-        self.run("git clone https://vcs.lynarstudios.de/public/ls-standard-library.git")
+        self.run("git clone https://vcs.lynarstudios.de/public/ls-standard-library.git --branch v" + self.version + " --single-branch")
 
     def build(self):
         cmake = CMake(self)