Conan 2.0 DocumentationConan settings and options. 4.1. Consuming packages 33 Conan Documentation, Release 2.0.17 Use the layout() method In the previous examples, every time we executed a conan install command, we had to use type of CMake generator we are using. You can define this directly in the conanfile.py inside the layout() method and make it work for every platform without adding more changes. Listing 30: conanfile self.requires("zlib/1.2.11") def build_requirements(self): self.tool_requires("cmake/3.22.6") def layout(self): # We make the assumption that if the compiler is msvc the # CMake generator is multi-config0 码力 | 652 页 | 4.00 MB | 1 年前3
Conan 2.5 Documentationstructure we want to follow and also to add some logic using Conan settings and options. Use the layout() method In the previous examples, every time we executed a conan install command, we had to use type of CMake generator we are using. You can define this directly in the conanfile.py inside the layout() method and make it work for every platform without adding more changes. Listing 31: conanfile build_requirements(self): if self.settings.os != "Windows": self.tool_requires("cmake/3.22.6") def layout(self): # We make the assumption that if the compiler is msvc the # CMake generator is multi-config0 码力 | 769 页 | 4.70 MB | 1 年前3
Conan 2.4 Documentationstructure we want to follow and also to add some logic using Conan settings and options. Use the layout() method In the previous examples, every time we executed a conan install command, we had to use type of CMake generator we are using. You can define this directly in the conanfile.py inside the layout() method and make it work for every platform without adding more changes. Listing 31: conanfile build_requirements(self): if self.settings.os != "Windows": self.tool_requires("cmake/3.22.6") def layout(self): # We make the assumption that if the compiler is msvc the # CMake generator is multi-config0 码力 | 769 页 | 4.69 MB | 1 年前3
Conan 2.1 Documentationstructure we want to follow and also to add some logic using Conan settings and options. Use the layout() method In the previous examples, every time we executed a conan install command, we had to use type of CMake generator we are using. You can define this directly in the conanfile.py inside the layout() method and make it work for every platform without adding more changes. Listing 31: conanfile build_requirements(self): if self.settings.os != "Windows": self.tool_requires("cmake/3.22.6") def layout(self): # We make the assumption that if the compiler is msvc the # CMake generator is multi-config0 码力 | 694 页 | 4.13 MB | 1 年前3
Conan 2.3 Documentationstructure we want to follow and also to add some logic using Conan settings and options. Use the layout() method In the previous examples, every time we executed a conan install command, we had to use type of CMake generator we are using. You can define this directly in the conanfile.py inside the layout() method and make it work for every platform without adding more changes. Listing 31: conanfile build_requirements(self): if self.settings.os != "Windows": self.tool_requires("cmake/3.22.6") def layout(self): # We make the assumption that if the compiler is msvc the # CMake generator is multi-config0 码力 | 748 页 | 4.65 MB | 1 年前3
Conan 2.2 Documentationstructure we want to follow and also to add some logic using Conan settings and options. Use the layout() method In the previous examples, every time we executed a conan install command, we had to use type of CMake generator we are using. You can define this directly in the conanfile.py inside the layout() method and make it work for every platform without adding more changes. Listing 31: conanfile build_requirements(self): if self.settings.os != "Windows": self.tool_requires("cmake/3.22.6") def layout(self): # We make the assumption that if the compiler is msvc the # CMake generator is multi-config0 码力 | 718 页 | 4.46 MB | 1 年前3
Conan 2.10 Documentationstructure we want to follow and also to add some logic using Conan settings and options. Use the layout() method In the previous examples, every time we executed a conan install command, we had to use type of CMake generator we are using. You can define this directly in the conanfile.py inside the layout() method and make it work for every platform without adding more changes. Listing 31: conanfile build_requirements(self): if self.settings.os != "Windows": self.tool_requires("cmake/3.22.6") def layout(self): # We make the assumption that if the compiler is msvc the # CMake generator is multi-config0 码力 | 803 页 | 5.02 MB | 11 月前3
Conan 2.9 Documentationstructure we want to follow and also to add some logic using Conan settings and options. Use the layout() method In the previous examples, every time we executed a conan install command, we had to use type of CMake generator we are using. You can define this directly in the conanfile.py inside the layout() method and make it work for every platform without adding more changes. Listing 31: conanfile build_requirements(self): if self.settings.os != "Windows": self.tool_requires("cmake/3.22.6") def layout(self): # We make the assumption that if the compiler is msvc the # CMake generator is multi-config0 码力 | 795 页 | 4.99 MB | 11 月前3
Conan 2.7 Documentationstructure we want to follow and also to add some logic using Conan settings and options. Use the layout() method In the previous examples, every time we executed a conan install command, we had to use type of CMake generator we are using. You can define this directly in the conanfile.py inside the layout() method and make it work for every platform without adding more changes. Listing 31: conanfile build_requirements(self): if self.settings.os != "Windows": self.tool_requires("cmake/3.22.6") def layout(self): # We make the assumption that if the compiler is msvc the # CMake generator is multi-config0 码力 | 779 页 | 4.93 MB | 11 月前3
Conan 2.8 Documentationstructure we want to follow and also to add some logic using Conan settings and options. Use the layout() method In the previous examples, every time we executed a conan install command, we had to use type of CMake generator we are using. You can define this directly in the conanfile.py inside the layout() method and make it work for every platform without adding more changes. Listing 31: conanfile build_requirements(self): if self.settings.os != "Windows": self.tool_requires("cmake/3.22.6") def layout(self): # We make the assumption that if the compiler is msvc the # CMake generator is multi-config0 码力 | 785 页 | 4.95 MB | 11 月前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













