-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathoptions.cmake
28 lines (22 loc) · 1.01 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
option(BUILD_SINGLE "Build single precision real" ON)
option(BUILD_DOUBLE "Build double precision real" ON)
option(BUILD_COMPLEX "Build single precision complex")
option(BUILD_COMPLEX16 "Build double precision complex")
# complex requires corresponding real
if(BUILD_COMPLEX)
set(BUILD_SINGLE true)
endif()
if(BUILD_COMPLEX16)
set(BUILD_DOUBLE true)
endif()
option(find_lapack "find LAPACK" on)
option(SCALAPACK_BUILD_TESTING "Build tests" ${SCALAPACK_IS_TOP_LEVEL})
# used with Git submodule to avoid rechecking each build for submodule changes
# for developers who switch submodule commits, need a fresh build of entire project.
set_property(DIRECTORY PROPERTY EP_UPDATE_DISCONNECTED true)
# Necessary for shared library with Visual Studio / Windows oneAPI
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS true)
# this is for convenience of those needing Lapack built
if(SCALAPACK_IS_TOP_LEVEL AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE "${PROJECT_BINARY_DIR}/local")
endif()