-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwin_options.cmake
More file actions
44 lines (42 loc) · 1.32 KB
/
win_options.cmake
File metadata and controls
44 lines (42 loc) · 1.32 KB
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
# ~~~~
# Example of CMake settings
# Please change the values to match your environment
# This setting is used for building with MSVC 2022 and Intel compilers 2025.
# ~~~~
set(CMAKE_C_COMPILER
cl
CACHE STRING "C compiler")
set(CMAKE_CXX_COMPILER
cl
CACHE STRING "C++ compiler")
# CMake often cannot find the Intel Fortran compiler automatically
# You may need to set the full path manually
set(CMAKE_Fortran_COMPILER
ifx
CACHE STRING "Fortran compiler")
# set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard")
set(CMAKE_POSITION_INDEPENDENT_CODE
ON
CACHE BOOL "Position independent code")
set(CMAKE_Fortran_FLAGS_INIT
"-traceback"
CACHE STRING "Fortran flags to use a large array for the dense dx")
# Dependent libraries. Assuming they are under deps directory.
set(THIRD_PARTY_DIR
"${CMAKE_SOURCE_DIR}/deps"
CACHE PATH "Third party directory")
set(BOOST_ROOT
"${THIRD_PARTY_DIR}/boost-1.83.0"
CACHE PATH "Boost root directory")
set(HDF5_ROOT
"${THIRD_PARTY_DIR}/HDF5-1.14.2-win64"
CACHE PATH "HDF5 root directory")
set(HEClib_ROOT
"${THIRD_PARTY_DIR}/heclib-6"
CACHE PATH "HEClib root directory")
set(KLU_ROOT
"${THIRD_PARTY_DIR}/suitesparse-4.0.2"
CACHE PATH "KLU root directory")
set(Loki_ROOT
"${THIRD_PARTY_DIR}/loki-0.1.7"
CACHE PATH "Loki root directory")