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 edbbcaa commit b6498c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/imgui/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import re
from pathlib import Path

import yaml
from conan import ConanFile
from conan.errors import ConanException
from conan.tools.apple import is_apple_os
Expand Down Expand Up @@ -224,9 +225,11 @@ def generate(self):
deps.generate()

def _source(self):
# self.conan_data is empty in build() when running with 'conan install' on CCI for some reason
conan_data = yaml.safe_load(Path(self.recipe_folder, "conandata.yml").read_text())
version = self.version.replace("-docking", "")
kind = "docking" if self.options.docking else "regular"
get(self, **self.conan_data["sources"][version][kind], destination=self.source_folder, strip_root=True)
get(self, **conan_data["sources"][version][kind], destination=self.source_folder, strip_root=True)

def _configure_header(self):
defines = {}
Expand Down

0 comments on commit b6498c1

Please sign in to comment.