From faf5ded7218e0380daaeffdb9ae84701dda330f5 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 15 Oct 2019 16:55:51 +0200 Subject: [PATCH] fix formatting and include example for setting compiler flags to enable C++11 --- doc/src/Build_settings.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/src/Build_settings.txt b/doc/src/Build_settings.txt index c40a91d781..730d779d63 100644 --- a/doc/src/Build_settings.txt +++ b/doc/src/Build_settings.txt @@ -38,11 +38,16 @@ when calling CMake. [CMake variable]: --D DISABLE_CXX11_REQUIREMENT=yes +-D DISABLE_CXX11_REQUIREMENT=yes :pre + +You can set additional C++ compiler flags (beyond those selected by CMake) +through the CMAKE_CXX_FLAGS variable. Example for CentOS 7: + +-D CMAKE_CXX_FLAGS="-O3 -g -fopenmp -DNDEBUG -std=c++11" :pre [Makefile.machine setting]: -LMP_INC = -DLAMMPS_CXX98 +LMP_INC = -DLAMMPS_CXX98 :pre :line