blob: b6e13f30acc8fe313ae4f55a1303e2614bd7a077 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f7a69c95..e44d3496 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -72,7 +72,6 @@ dbsConfigInfo()
# Platform Checks: Is HOST_NAME_MAX defined? Is WinSock2.h available? Is
# gethostname() available?
include( platform_checks )
-query_craype()
set_draco_uname()
query_have_gethostname()
query_have_maxpathlen()
diff --git a/config/platform_checks.cmake b/config/platform_checks.cmake
index 3ddcdab3..e66fd5e8 100644
--- a/config/platform_checks.cmake
+++ b/config/platform_checks.cmake
@@ -64,48 +64,6 @@ Platform Checks...
")
dbs_set_sitename()
-#------------------------------------------------------------------------------#
-# Sanity checks for Cray Programming Environments
-#
-# - Ensure CMAKE_EXE_LINKER_FLAGS contains "-dynamic"
-# - Ensure that the compilers given to cmake are actually Cray compiler
-# wrappers.
-#------------------------------------------------------------------------------#
-macro( query_craype )
-
- # We expect developers to use the Cray compiler wrappers. See also
- # https://cmake.org/cmake/help/latest/module/FindMPI.html
- #
- # Skip this check if building from within spack.
- if( CMAKE_CXX_COMPILER_WRAPPER STREQUAL CrayPrgEnv AND
- NOT "$ENV{CXX}" MATCHES "$ENV{SPACK_ROOT}/lib/spack/env/" )
- if( NOT "$ENV{CXX}" MATCHES "CC$" OR
- NOT "$ENV{CC}" MATCHES "cc$" OR
- NOT "$ENV{FC}" MATCHES "ftn$" OR
- NOT "$ENV{CRAYPE_LINK_TYPE}" MATCHES "dynamic$" )
- message( FATAL_ERROR
- "The build system requires that the Cray compiler wrappers (CC, cc, "
- "ftn) be used when configuring this product on a Cray system "
- "(CMAKE_CXX_COMPILER_WRAPPER = ${CMAKE_CXX_COMPILER_WRAPPER}). The "
- "development environment must also support dynamic linking. The "
- "build system thinks you are trying to use:\n"
- " CMAKE_CXX_COMPILER = ${CMAKE_CXX_COMPILER}\n"
- " CMAKE_C_COMPILER = ${CMAKE_C_COMPILER}\n"
- " CMAKE_Fortran_COMPILER = ${CMAKE_Fortran_COMPILER}\n"
- " CRAYPE_LINK_TYPE = $ENV{CRAYPE_LINK_TYPE}\n"
- "If you are working on a system that runs the Cray Programming "
- "Environment, try setting the following variables and rerunning cmake "
- "from a clean build directory:\n"
- " export CXX=`which CC`\n"
- " export CC=`which cc`\n"
- " export FC=`which ftn`\n"
- " export CRAYPE_LINK_TYPE=dynamic\n"
- "Otherwise please email this error message and other related "
- "information to draco@lanl.gov.\n" )
- endif()
- endif()
-endmacro()
-
##---------------------------------------------------------------------------##
## Determine System Type and System Names
##
diff --git a/config/vendor_libraries.cmake b/config/vendor_libraries.cmake
index 7112e786..55596abe 100644
--- a/config/vendor_libraries.cmake
+++ b/config/vendor_libraries.cmake
@@ -786,7 +786,6 @@ Looking for Draco...\")
# CMake macros that check the system for features like 'gethostname', etc.
include( platform_checks )
- query_craype()
# Set compiler options
include( compilerEnv )
|