-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathoptions.cmake
55 lines (38 loc) · 1.79 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
option(MUMPS_BUILD_TESTING "Build tests" ${MUMPS_IS_TOP_LEVEL})
option(find_static "Find static libraries for Lapack and Scalapack (default shared then static search)")
if(MUMPS_UPSTREAM_VERSION VERSION_GREATER_EQUAL 5.2)
option(gemmt "GEMMT is recommended in User Manual if available" ON)
endif()
option(MUMPS_parallel "parallel (use MPI)" ON)
option(intsize64 "use 64-bit integers in C and Fortran")
option(MUMPS_scalapack "Use ScalaPACK to speed up the solution of linear systems" ON)
if(MUMPS_UPSTREAM_VERSION VERSION_LESS 5.7 AND NOT MUMPS_scalapack)
message(FATAL_ERROR "MUMPS version < 5.7 requires MUMPS_scalapack=on")
endif()
option(scotch "use Scotch orderings")
option(parmetis "use parallel METIS ordering")
option(metis "use sequential METIS ordering")
if(parmetis AND NOT MUMPS_parallel)
message(FATAL_ERROR "parmetis requires MUMPS_parallel=on")
endif()
option(MUMPS_openmp "use OpenMP")
option(matlab "Matlab interface" OFF)
if(matlab AND MUMPS_parallel)
message(FATAL_ERROR "Matlab requires -DMUMPS_parallel=off")
endif()
option(find "find [SCA]LAPACK" on)
option(BUILD_SHARED_LIBS "Build shared libraries")
include(CheckPIESupported)
check_pie_supported()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
option(BUILD_SINGLE "Build single precision float32 real" ON)
option(BUILD_DOUBLE "Build double precision float64 real" ON)
option(BUILD_COMPLEX "Build single precision complex")
option(BUILD_COMPLEX16 "Build double precision complex")
# --- other options
set_property(DIRECTORY PROPERTY EP_UPDATE_DISCONNECTED true)
set(FETCHCONTENT_UPDATES_DISCONNECTED true)
# this is for convenience of those needing scalapaack, lapack built
if(MUMPS_IS_TOP_LEVEL AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE "${PROJECT_BINARY_DIR}/local")
endif()