Skip to content

Commit

Permalink
imgui: drop Conan 1.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 5, 2024
1 parent 720b407 commit c13dbf6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions recipes/imgui/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from conan.tools.files import copy, get, replace_in_file
from conan.tools.scm import Version

required_conan_version = ">=1.53.0"
required_conan_version = ">=2.0.9"


class ImguiConan(ConanFile):
Expand Down Expand Up @@ -181,8 +181,7 @@ def requirements(self):
self.requires("metal-cpp/14.2", transitive_headers=bool(self.options.get_safe("backend_metal")))

def validate(self):
if self.settings.compiler.cppstd:
check_min_cppstd(self, 11)
check_min_cppstd(self, 11)
if Version(self.version) < "1.89" and self.options.docking:
raise ConanException("Docking support requires version 1.89 or newer.")
if self.version.endswith("-docking"):
Expand Down Expand Up @@ -340,6 +339,3 @@ def _metal_cpp():
# _add_binding("wgpu", requires=["dawn::dawn"])

self.conf_info.define("user.imgui:with_docking", bool(self.options.docking))

if self.options.build_programs:
self.env_info.PATH.append(os.path.join(self.package_folder, "bin"))

0 comments on commit c13dbf6

Please sign in to comment.