Commit e9fbb58d authored by Andreas Adelmann's avatar Andreas Adelmann
Browse files

get proper hostname with cmake_host_system_information instead of (.) which is not portable

parent 140ff3a7
......@@ -16,9 +16,12 @@ IF (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
)
ENDIF (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
CMAKE_HOST_SYSTEM_INFORMATION(RESULT HOSTNAME QUERY HOSTNAME)
MESSAGE (STATUS "Build type is: " ${CMAKE_BUILD_TYPE})
MESSAGE (STATUS "Host OS System: ${CMAKE_HOST_SYSTEM}")
MESSAGE (STATUS "Hostname: $ENV{HOSTNAME}")
MESSAGE (STATUS "Hostname: ${HOSTNAME}")
# Select flags.
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g ")
......@@ -276,4 +279,4 @@ set(OPAL_CXX_FLAGS ${OPAL_CXX_FLAGS}
set(OPAL_LIBS ${OPAL_LIBS}
CACHE INTERNAL "" FORCE
)
\ No newline at end of file
)
......@@ -99,7 +99,7 @@ ENDIF (ENABLE_OPENCL OR ENABLE_CUDA OR ENABLE_MIC)
# remove digits from hostname: edison03 -> edison
STRING(REGEX MATCH "[^0-9]*" HOSTNAME_BASE "$ENV{HOSTNAME}")
STRING(REGEX MATCH "[^0-9]*" HOSTNAME_BASE "${HOSTNAME}")
IF(${HOSTNAME_BASE} MATCHES "edison")
SET (OPAL_LIBS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment