@@ -11,23 +11,6 @@ set(DETECTED_SITE "UNKNOWN")
1111
1212if (${BUILD_SITE} MATCHES "discover*" OR ${BUILD_SITE} MATCHES "borg*" OR ${BUILD_SITE} MATCHES "warp*" )
1313 set (DETECTED_SITE "NCCS" )
14- # NCCS now has two OSs. We need to detect if we are on SLES 15. If so, we set a flag "BUILT_ON_SLES15"
15- # which we will use to make sure people building on SLES15 run on SLES15
16- # The commmand we use in bash is:
17- # grep VERSION_ID /etc/os-release | cut -d= -f2 | cut -d. -f1 | sed 's/"//g'
18- execute_process (
19- COMMAND grep VERSION_ID /etc/os-release
20- COMMAND cut -d= -f2
21- COMMAND cut -d. -f1
22- COMMAND sed s/ \"//g
23- OUTPUT_VARIABLE OS_RELEASE
24- OUTPUT_STRIP_TRAILING_WHITESPACE
25- )
26- if (OS_RELEASE STREQUAL " 15 ")
27- set (BUILT_ON_SLES15 TRUE)
28- else ()
29- set (BUILT_ON_SLES15 FALSE)
30- endif ()
3114elseif (${BUILD_SITE} MATCHES "pfe" OR ${BUILD_SITE} MATCHES "r[0-9]*i[0-9]*n[0-9]*" OR ${BUILD_SITE} MATCHES "r[0-9]*c[0-9]*t[0-9]*n[0-9]*" )
3215 set (DETECTED_SITE "NAS" )
3316elseif (EXISTS /ford1/share/gmao_SIteam AND EXISTS /ford1/local AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
@@ -80,12 +63,3 @@ endif ()
8063
8164set (GEOS_SITE ${DETECTED_SITE} CACHE STRING "Detected site for use with GEOS setup scripts" )
8265message (STATUS "Setting GEOS_SITE to ${GEOS_SITE} " )
83-
84- if (DETECTED_SITE STREQUAL " NCCS ")
85- if (BUILT_ON_SLES15)
86- message(STATUS " Building on SLES15 at NCCS. Can only run on Milan processors ")
87- else ()
88- message(STATUS " Building on SLES12 at NCCS. Can run on Cascade Lake or Skylake processors ")
89- endif ()
90- endif ()
91-
0 commit comments