-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.sh
executable file
·22 lines (18 loc) · 1.17 KB
/
configure.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Kratos OmniCompile
clear
#you may want to decomment this the first time you compile
rm CMakeCache.txt 2> /dev/null
rm *.cmake 2> /dev/null
rm -rf CMakeFiles\ 2> /dev/null
export CC=clang
export CXX=clang++
cmake .. \
-DCMAKE_C_COMPILER=${CC} \
-DCMAKE_CXX_COMPILER=${CXX} \
-DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -fopenmp=libomp -Wsign-compare -std=c++11 -Wno-overloaded-virtual -mavx2 -g" \
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} -fopenmp=libomp -mavx2 -g" \
-DKRATOS_PATH="" \
-DUSE_MPI=ON \
-DUSE_KRATOS=OFF \
-DCMAKE_BUILD_TYPE=Release