Skip to content

Commit

Permalink
Default as header-only
Browse files Browse the repository at this point in the history
  • Loading branch information
franramirez688 committed May 13, 2024
1 parent 22b1b41 commit b55f734
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipes/yomm2/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class yomm2Recipe(ConanFile):
name = "yomm2"
package_type = "shared-library"
package_type = "header-library"
# Optional metadata
license = "BSL-1.0"
url = "https://github.com/conan-io/conan-center-index"
Expand All @@ -26,7 +26,7 @@ class yomm2Recipe(ConanFile):
"header_only": [True, False],
}
default_options = {
"header_only": False
"header_only": True
}

@property
Expand All @@ -43,8 +43,8 @@ def _compilers_minimum_version(self):
}

def configure(self):
if self.options.header_only:
self.package_type = "header-library"
if not bool(self.options.header_only):
self.package_type = "shared-library"

def validate(self):
if self.settings.compiler.get_safe("cppstd"):
Expand Down

0 comments on commit b55f734

Please sign in to comment.