Conan 2.0 Documentationprovides a mechanism to define those variables and make it possible, for executables, to find and load these shared libraries. This mechanism is the VirtualRunEnv generator. If you check the output folder from conan import ConanFile from conan.tools.files import load class pkgRecipe(ConanFile): name = "pkg" def set_version(self): self.version = load(self, "version.txt") # No need to specify the version # if self.version is already defined from CLI --version arg, it will # not load version.txt self.version = self.version or load(self, "version.txt") # This will create the "1.4" version even if the version0 码力 | 652 页 | 4.00 MB | 1 年前3
Conan 2.5 Documentationprovides a mechanism to define those variables and make it possible, for executables, to find and load these shared libraries. This mechanism is the VirtualRunEnv generator. If you check the output folder can be done: Listing 73: conanfile.py from conan import ConanFile from conan.tools.files import load (continues on next page) 120 Chapter 4. Tutorial Conan Documentation, Release 2.5.0 (continued from previous page) class pkgRecipe(ConanFile): name = "pkg" def set_version(self): self.version = load(self, "version.txt") # No need to specify the version in CLI arg or in recipe attribute $ conan create0 码力 | 769 页 | 4.70 MB | 1 年前3
Conan 2.4 Documentationprovides a mechanism to define those variables and make it possible, for executables, to find and load these shared libraries. This mechanism is the VirtualRunEnv generator. If you check the output folder can be done: Listing 73: conanfile.py from conan import ConanFile from conan.tools.files import load (continues on next page) 120 Chapter 4. Tutorial Conan Documentation, Release 2.4.1 (continued from previous page) class pkgRecipe(ConanFile): name = "pkg" def set_version(self): self.version = load(self, "version.txt") # No need to specify the version in CLI arg or in recipe attribute $ conan create0 码力 | 769 页 | 4.69 MB | 1 年前3
Conan 2.10 Documentationprovides a mechanism to define those variables and make it possible, for executables, to find and load these shared libraries. This mechanism is the VirtualRunEnv generator. If you check the output folder from conan import ConanFile from conan.tools.files import load class pkgRecipe(ConanFile): name = "pkg" def set_version(self): self.version = load(self, "version.txt") # No need to specify the version # if self.version is already defined from CLI --version arg, it will # not load version.txt self.version = self.version or load(self, "version.txt") # This will create the "1.4" version even if the version0 码力 | 803 页 | 5.02 MB | 10 月前3
Conan 2.9 Documentationprovides a mechanism to define those variables and make it possible, for executables, to find and load these shared libraries. This mechanism is the VirtualRunEnv generator. If you check the output folder from conan import ConanFile from conan.tools.files import load class pkgRecipe(ConanFile): name = "pkg" def set_version(self): self.version = load(self, "version.txt") # No need to specify the version # if self.version is already defined from CLI --version arg, it will # not load version.txt self.version = self.version or load(self, "version.txt") # This will create the "1.4" version even if the version0 码力 | 795 页 | 4.99 MB | 10 月前3
Conan 2.7 Documentationprovides a mechanism to define those variables and make it possible, for executables, to find and load these shared libraries. This mechanism is the VirtualRunEnv generator. If you check the output folder can be done: Listing 75: conanfile.py from conan import ConanFile from conan.tools.files import load (continues on next page) 120 Chapter 4. Tutorial Conan Documentation, Release 2.7.1 (continued from previous page) class pkgRecipe(ConanFile): name = "pkg" def set_version(self): self.version = load(self, "version.txt") # No need to specify the version in CLI arg or in recipe attribute $ conan create0 码力 | 779 页 | 4.93 MB | 10 月前3
Conan 2.8 Documentationprovides a mechanism to define those variables and make it possible, for executables, to find and load these shared libraries. This mechanism is the VirtualRunEnv generator. If you check the output folder can be done: Listing 75: conanfile.py from conan import ConanFile from conan.tools.files import load (continues on next page) 120 Chapter 4. Tutorial Conan Documentation, Release 2.8.1 (continued from previous page) class pkgRecipe(ConanFile): name = "pkg" def set_version(self): self.version = load(self, "version.txt") # No need to specify the version in CLI arg or in recipe attribute $ conan create0 码力 | 785 页 | 4.95 MB | 10 月前3
Conan 2.1 Documentationprovides a mechanism to define those variables and make it possible, for executables, to find and load these shared libraries. This mechanism is the VirtualRunEnv generator. If you check the output folder from conan import ConanFile from conan.tools.files import load class pkgRecipe(ConanFile): name = "pkg" def set_version(self): self.version = load(self, "version.txt") # No need to specify the version # if self.version is already defined from CLI --version arg, it will # not load version.txt self.version = self.version or load(self, "version.txt") # This will create the "1.4" version even if the version0 码力 | 694 页 | 4.13 MB | 1 年前3
Conan 2.6 Documentationprovides a mechanism to define those variables and make it possible, for executables, to find and load these shared libraries. This mechanism is the VirtualRunEnv generator. If you check the output folder can be done: Listing 73: conanfile.py from conan import ConanFile from conan.tools.files import load (continues on next page) 120 Chapter 4. Tutorial Conan Documentation, Release 2.6.0 (continued from previous page) class pkgRecipe(ConanFile): name = "pkg" def set_version(self): self.version = load(self, "version.txt") # No need to specify the version in CLI arg or in recipe attribute $ conan create0 码力 | 777 页 | 4.91 MB | 10 月前3
Conan 2.3 Documentationprovides a mechanism to define those variables and make it possible, for executables, to find and load these shared libraries. This mechanism is the VirtualRunEnv generator. If you check the output folder from conan import ConanFile from conan.tools.files import load class pkgRecipe(ConanFile): name = "pkg" def set_version(self): self.version = load(self, "version.txt") # No need to specify the version # if self.version is already defined from CLI --version arg, it will # not load version.txt self.version = self.version or load(self, "version.txt") # This will create the "1.4" version even if the version0 码力 | 748 页 | 4.65 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













