Skip to content

Commit

Permalink
Allow users to pass auto and have it be guessed
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS authored Jul 16, 2024
1 parent 3b49f26 commit 45c3127
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipes/ios-cmake/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ def _default_toolchain_target(self):
return "TVOS"
else:
return "SIMULATOR_TVOS"
return None
return "auto"

def config_options(self):
self.options.toolchain_target = self._default_toolchain_target or "auto"
def configure(self):
if self.options.toolchain_target == "auto":
self.options.toolchain_target = self._default_toolchain_target

def export_sources(self):
copy(self, "cmake-wrapper", self.recipe_folder, self.export_sources_folder)
Expand Down

0 comments on commit 45c3127

Please sign in to comment.