diff --git a/recipes/premake/5.x/conanfile.py b/recipes/premake/5.x/conanfile.py index 1b99ac7ae2e9d..5e80548a7a014 100644 --- a/recipes/premake/5.x/conanfile.py +++ b/recipes/premake/5.x/conanfile.py @@ -55,6 +55,10 @@ def requirements(self): self.requires("util-linux-libuuid/2.39.2") # Lua sources are required during the build and cannot be unvendored + def validate(self): + if self.version == "5.0.0-alpha15" and cross_building(self): + raise ConanInvalidConfiguration("Cross-building is not supported for Premake 5.0.0-alpha15") + def source(self): get(self, **self.conan_data["sources"][self.version], strip_root=True) @@ -172,9 +176,6 @@ def package_info(self): self.cpp_info.resdirs = [] self.cpp_info.includedirs = [] - # https://github.com/premake/premake-core/blob/v5.0.0-beta2/premake5.lua#L232-L271 - - # TODO: Legacy, to be removed on Conan 2.0 bindir = os.path.join(self.package_folder, "bin") self.env_info.PATH.append(bindir)