Skip to content

Commit

Permalink
Properly check if the OS is Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Oct 6, 2021
1 parent c2db043 commit 7eebbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conan/tools/cmake/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def context(self):
if fpic is None:
return None
os_ = self._conanfile.settings.get_safe("os")
if os_ and "Windows" in os_:
if os_ == "Windows":
self._conanfile.output.warn("Toolchain: Ignoring fPIC option defined for Windows")
return None
shared = self._conanfile.options.get_safe("shared")
Expand Down

0 comments on commit 7eebbde

Please sign in to comment.