Skip to content
Snippets Groups Projects

Force CMake to 3.3.2 for SLC5

Merged Ben Couturier requested to merge LBCORE-1588 into master
All threads resolved!
1 file
+ 12
1
Compare changes
  • Side-by-side
  • Inline
@@ -592,7 +592,18 @@ class LbLoginScript(SourceScript):
@@ -592,7 +592,18 @@ class LbLoginScript(SourceScript):
appversion = opts.cmakevers[:lastdot-1] + '-' + opts.cmakevers[lastdot+1:]
appversion = opts.cmakevers[:lastdot-1] + '-' + opts.cmakevers[lastdot+1:]
subdir = "CMake/%s/Darwin/CMake %s.app/Contents/bin" % (opts.cmakevers, appversion)
subdir = "CMake/%s/Darwin/CMake %s.app/Contents/bin" % (opts.cmakevers, appversion)
elif sys.platform.startswith('linux'):
elif sys.platform.startswith('linux'):
subdir = "CMake/%s/Linux-x86_64/bin" % opts.cmakevers
# Checking if we are on SLC5 to force CMake 3.3.2, the last one that we have that
 
# works there...
 
cmake_version = opts.cmakevers
 
try:
 
if not self._nativemachine :
 
self._nativemachine = NativeMachine()
 
dist = self._nativemachine.CMTNativeConfig().split('-')[1]
 
if dist == "slc5":
 
cmake_version = "3.3.2"
 
except:
 
pass
 
subdir = "CMake/%s/Linux-x86_64/bin" % cmake_version
else:
else:
log.debug('CMake is not provided for platform %s', sys.platform)
log.debug('CMake is not provided for platform %s', sys.platform)
return
return
Loading