Skip to content

Commit 5509f95

Browse files
memshardedczoido
andauthored
add missing package_type header-library (#180)
* add missing package_type header-library * Update tutorial/creating_packages/other_packages/header_only_gtest/conanfile.py --------- Co-authored-by: Carlos Zoido <[email protected]>
1 parent b8122ad commit 5509f95

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tutorial/creating_packages/other_packages/header_only/conanfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ class SumConan(ConanFile):
88
# No settings/options are necessary, this is header only
99
exports_sources = "include/*"
1010
no_copy_source = True
11+
# Important, define the package_type
12+
package_type = "header-library"
1113

1214
def package(self):
1315
# This will also copy the "include" folder

tutorial/creating_packages/other_packages/header_only_gtest/conanfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class SumConan(ConanFile):
1212
exports_sources = "include/*", "test/*"
1313
no_copy_source = True
1414
generators = "CMakeToolchain", "CMakeDeps"
15+
# Important, define the package_type
16+
package_type = "header-library"
1517

1618
def validate(self):
1719
check_min_cppstd(self, 11)

0 commit comments

Comments
 (0)