Skip to content

Commit

Permalink
Make Conan 1 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS authored Oct 29, 2024
1 parent 23540de commit ed52ff0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions recipes/cli11/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ def _min_cppstd(self):
def _supports_compilation(self):
return Version(self.version) >= "2.3"

def config_options(self):
def configure(self):
if not self._supports_compilation:
# TODO: Back to config_options after Conan 1 freeze
del self.options.header_only

def configure(self):
if self._supports_compilation and not self.options.header_only:
elif not self.options.header_only:
self.package_type = "static-library"

def layout(self):
Expand Down

0 comments on commit ed52ff0

Please sign in to comment.