From ad69cbc6814e0458ab27412cfad9519fe30545e0 Mon Sep 17 00:00:00 2001 From: Lawrence Millar-Madigan Date: Sat, 22 Jun 2019 14:49:47 +1000 Subject: [PATCH] Conan: Support package in editable mode Add a method to the recipe that maps the include path to "src" when the package is put into "editable mode". See: https://docs.conan.io/en/latest/developing_packages/editable_packages.html --- conanfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conanfile.py b/conanfile.py index 08176d3f8..c987d7765 100644 --- a/conanfile.py +++ b/conanfile.py @@ -19,5 +19,9 @@ class EnttConan(ConanFile): self.copy(pattern="LICENSE", dst="licenses") self.copy(pattern="*", dst="include", src="src", keep_path=True) + def package_info(self): + if not self.in_local_cache: + self.cpp_info.includedirs = ["src"] + def package_id(self): self.info.header_only()