-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoptions.cmake
85 lines (64 loc) · 2.93 KB
/
options.cmake
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
78
79
80
81
82
83
84
85
# MIT License
#
# Copyright (c) 2021-2022 Advanced Micro Devices, Inc. All rights reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
option(find_static "Find static libraries for Lapack and Scalapack (default shared then static search)")
if(local)
get_filename_component(local ${local} ABSOLUTE)
if(NOT IS_DIRECTORY ${local})
message(FATAL_ERROR "Local directory ${local} does not exist")
endif()
endif()
if(MUMPS_UPSTREAM_VERSION VERSION_GREATER_EQUAL 5.2)
option(gemmt "GEMMT is recommended in User Manual if available" ON)
endif()
option(parallel "parallel (use MPI)" ON)
option(intsize64 "use 64-bit integers in C and Fortran" OFF)
if(intsize64)
add_compile_definitions(INTSIZE64
$<$<COMPILE_LANG_AND_ID:Fortran,Intel,IntelLLVM>:WORKAROUNDINTELILP64MPI2INTEGER>
)
endif()
option(scotch "use Scotch orderings " OFF)
option(parmetis "use parallel METIS ordering" OFF)
option(metis "use sequential METIS ordering" ON)
if(parmetis AND NOT parallel)
message(FATAL_ERROR "parmetis requires parallel=on")
endif()
option(openmp "use OpenMP" ON)
option(matlab "Matlab interface" OFF)
option(octave "GNU Octave interface" OFF)
if((matlab OR octave) AND parallel)
message(FATAL_ERROR "Matlab / Octave requires parallel=off")
endif()
option(find "find [SCA]LAPACK" on)
option(BUILD_SHARED_LIBS "Build shared libraries")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
option(BUILD_SINGLE "Build single precision float32 real" OFF)
option(BUILD_DOUBLE "Build double precision float64 real" ON)
option(BUILD_COMPLEX "Build single precision complex" OFF)
option(BUILD_COMPLEX16 "Build double precision complex" OFF)
# --- other options
option(CMAKE_TLS_VERIFY "Verify TLS certificates" ON)
set_property(DIRECTORY PROPERTY EP_UPDATE_DISCONNECTED true)
set(FETCHCONTENT_UPDATES_DISCONNECTED true)
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/local" CACHE PATH "default install path" FORCE)
endif()