Paths.cmake 2.82 KB
Newer Older
1
# Choose C and C++ compilers. You might also specifies here clang static analyzer (paths to ccc-analyzer and c++-analyzer respectively) to perform static analysis of the code.
2 3
set(MPI_CC /Users/Shared/LibraryVersions/llvm-clang/Openmpi/bin/mpicc )
set(MPI_CXX /Users/Shared/LibraryVersions/llvm-clang/Openmpi/bin/mpic++ )
4

5
# Choose either STATIC or SHARED.
6
set(LIBRARY_TYPE STATIC)
7 8 9

# Whether a unique library is built for MoReFEM core libraries or on the contrary if it is splitted in modules.
set(BUILD_MOREFEM_UNIQUE_LIBRARY False)
10 11 12 13

# Whether specific macros should be activated or not.

    # If true, add a (costly) method that gives an hint whether an UpdateGhost() call was relevant or not.
14
set(MOREFEM_CHECK_UPDATE_GHOSTS_CALL_RELEVANCE False)
15 16

    # If true, TimeKeep gains the ability to track times between each call of PrintTimeElapsed(). If not, PrintTimeElapsed() is flatly ignored.
17
set(MOREFEM_EXTENDED_TIME_KEEP False)
18 19

    # If true, there are additional checks that no nan and inf appears in the code. Even if False, solver always check for the validity of its solution (if a nan or an inf is present the SolveLinear() or SolveNonLinear() operation throws with a dedicated Petsc error). Advised in debug mode and up to you in release mode.
20
set(MOREFEM_CHECK_NAN_AND_INF False)
21 22 23 24 25 26 27 28

# OpenMPI libary.
set(OPEN_MPI_INCL_DIR /Users/Shared/LibraryVersions/clang/Openmpi/include )
set(OPEN_MPI_LIB_DIR /Users/Shared/LibraryVersions/clang/Openmpi/lib )

# BLAS Library.
set(BLAS_CUSTOM_LINKER True)
set(BLAS_LIB_DIR None)
29
set(BLAS_LIB -framework Accelerate )
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

# Petsc library.
set(PETSC_GENERAL_INCL_DIR /Users/Shared/LibraryVersions/clang/Petsc/include )
set(PETSC_DEBUG_INCL_DIR /Users/Shared/LibraryVersions/clang/Petsc/debug/include )
set(PETSC_RELEASE_INCL_DIR /Users/Shared/LibraryVersions/clang/Petsc/release/include )

set(PETSC_DEBUG_LIB_DIR /Users/Shared/LibraryVersions/clang/Petsc/debug/lib )
set(PETSC_RELEASE_LIB_DIR /Users/Shared/LibraryVersions/clang/Petsc/release/lib )

# Parmetis library.
set(PARMETIS_INCL_DIR /Users/Shared/LibraryVersions/clang/Parmetis/include )
set(PARMETIS_LIB_DIR /Users/Shared/LibraryVersions/clang/Parmetis/lib )

# Lua library.
set(LUA_INCL_DIR /Users/Shared/LibraryVersions/clang/Lua/include )
set(LUA_LIB_DIR /Users/Shared/LibraryVersions/clang/Lua/lib )

# Boost library
set(BOOST_INCL_DIR /Users/Shared/LibraryVersions/clang/Boost/include )
set(BOOST_LIB_DIR /Users/Shared/LibraryVersions/clang/Boost/lib )

# Ops directory (source files are looked there and library is compiled by Morefem).
set(OPS_DIR /Users/Shared/LibraryVersions/clang/Ops )

# Seldon directory (source files are looked there and library is compiled by Morefem).
set(SELDON_DIR /Users/Shared/LibraryVersions/clang/Seldon )

# If you want to couple Morefem with Phillips library. None in most of the cases!
set(PHILLIPS_LINKER False)
set(PHILLIPS_DIR None)