Skip to content

Commit

Permalink
imgui: workaround for self.conan_data being empty in build()
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Oct 24, 2024
1 parent b6498c1 commit 1dfb051
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions recipes/imgui/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ class ImguiConan(ConanFile):
"build_programs": False,
}

def export(self):
copy(self, "conandata.yml", self.recipe_folder, self.export_folder)

def export_sources(self):
copy(self, "CMakeLists.txt", self.recipe_folder, os.path.join(self.export_sources_folder, "src"))

Expand Down Expand Up @@ -189,10 +192,6 @@ def validate(self):
if self.version.endswith("-docking"):
self.output.warning("The -docking versions of imgui are deprecated. Use -o imgui/*:docking=True instead.")

def source(self):
# Handled in build() instead to support self.options.docking.
pass

def generate(self):
tc = CMakeToolchain(self)
tc.cache_variables["IMGUI_IMPL_ALLEGRO5"] = self.options.get_safe("backend_allegro5", False)
Expand Down

0 comments on commit 1dfb051

Please sign in to comment.