Skip to content
Snippets Groups Projects
Commit 4e33e9b9 authored by Nico's avatar Nico Committed by BaM
Browse files

add C++11 flags correctly in install.sh

parent 8f74da34
No related branches found
No related tags found
No related merge requests found
...@@ -23,10 +23,10 @@ guiDir="bin" ...@@ -23,10 +23,10 @@ guiDir="bin"
#_____________________________________________________________________________ #_____________________________________________________________________________
# compilator and options # compilator and options
if [[ -z "$CXX" ]]; then if [[ -z "$CXX" ]]; then
CXX="g++ -std=c++11" # default compiler is g++ with C++11 CXX="g++" # default compiler is g++ with C++11
fi fi
if [[ -z "$CXXFLAGS" ]]; then if [[ -z "$CXXFLAGS" ]]; then
CXXFLAGS="-O2 -g -fPIC -finline-functions" # some optimization flags for GCC, -fPIC and -finline-functions are not avalable for clang CXXFLAGS=" -std=c++11 -O2 -g -fPIC -finline-functions" # some optimization flags for GCC, -fPIC and -finline-functions are not avalable for clang
fi fi
if [[ -z "$CPPFLAGS" ]]; then if [[ -z "$CPPFLAGS" ]]; then
CPPFLAGS=$OMPFLAGS CPPFLAGS=$OMPFLAGS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment