Skip to content

Commit

Permalink
openssl: closes conan-io#4740
Browse files Browse the repository at this point in the history
  • Loading branch information
db4 committed May 5, 2021
1 parent f89b5b8 commit 3cf0095
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/openssl/1.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,13 @@ def _make(self):
if self._use_nmake and self._full_version >= "1.1.0":
self._replace_runtime_in_file(os.path.join("Configurations", "10-main.conf"))

if self._use_nmake:
# Windows: when cmake generates its cache, it populates some environment variables as well.
# If cmake also initiates openssl build, their values (containing spaces and forward slashes)
# break nmake (don't know about mingw make). So we fix them
for v in ['CC', 'CXX', 'RC']:
if v in os.environ and not '"' in os.environ[v]:
os.environ[v] = '"' + os.environ[v].replace('/', '\\') + '"'
self.run('{perl} ./Configure {args}'.format(perl=self._perl, args=args), win_bash=self._win_bash)

self._patch_install_name()
Expand Down

0 comments on commit 3cf0095

Please sign in to comment.