Skip to content

Commit

Permalink
conan-io#7646 specify the build target correctly on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
lederernc committed Oct 28, 2021
1 parent a46359c commit 7c8bb94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipes/draco/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,13 @@ def _get_target(self):
"encode_and_decode": "draco",
"encode_only": "dracoenc"
}.get(str(self.options.target))

if self.settings.os == "Windows":
return "draco"

if self.options.shared:
return "draco_shared"

return "draco_static"

def package(self):
Expand Down

0 comments on commit 7c8bb94

Please sign in to comment.