Skip to content

Commit ad69cbc

Browse files
committed
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
1 parent 04dd144 commit ad69cbc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: conanfile.py

+4
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@ def package(self):
1919
self.copy(pattern="LICENSE", dst="licenses")
2020
self.copy(pattern="*", dst="include", src="src", keep_path=True)
2121

22+
def package_info(self):
23+
if not self.in_local_cache:
24+
self.cpp_info.includedirs = ["src"]
25+
2226
def package_id(self):
2327
self.info.header_only()

0 commit comments

Comments
 (0)