trilinos / oce : add missing if before calling macOS_version (#5743)
* trilinos: add missing if before calling macOS_version * oce: add missing if before calling macOS_version
This commit is contained in:
parent
9716a6f37f
commit
b8c1ce43fa
@ -92,7 +92,8 @@ def install(self, spec, prefix):
|
|||||||
'-DOCE_OSX_USE_COCOA:BOOL=ON',
|
'-DOCE_OSX_USE_COCOA:BOOL=ON',
|
||||||
])
|
])
|
||||||
|
|
||||||
if macOS_version() >= Version('10.12'):
|
if platform.system() == 'Darwin' and (
|
||||||
|
macOS_version() >= Version('10.12')):
|
||||||
# use @rpath on Sierra due to limit of dynamic loader
|
# use @rpath on Sierra due to limit of dynamic loader
|
||||||
options.append('-DCMAKE_MACOSX_RPATH=ON')
|
options.append('-DCMAKE_MACOSX_RPATH=ON')
|
||||||
else:
|
else:
|
||||||
|
@ -586,7 +586,7 @@ def cmake_args(self):
|
|||||||
'-DTrilinos_ENABLE_FEI=OFF'
|
'-DTrilinos_ENABLE_FEI=OFF'
|
||||||
])
|
])
|
||||||
|
|
||||||
if macOS_version() >= Version('10.12'):
|
if sys.platform == 'darwin' and macOS_version() >= Version('10.12'):
|
||||||
# use @rpath on Sierra due to limit of dynamic loader
|
# use @rpath on Sierra due to limit of dynamic loader
|
||||||
options.append('-DCMAKE_MACOSX_RPATH=ON')
|
options.append('-DCMAKE_MACOSX_RPATH=ON')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user