mirror changes to conventional build to forcibly enable c++11 for intel compilers

This commit is contained in:
Axel Kohlmeyer
2019-10-18 18:34:39 -04:00
parent 3017f78e2e
commit 7358a3ce06

View File

@ -53,7 +53,7 @@ include(CheckCCompilerFlag)
include(CheckIncludeFileCXX)
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -restrict")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -restrict -std=c++11")
endif()
option(DISABLE_CXX11_REQUIREMENT "Disable check that requires C++11 for compiling LAMMPS" OFF)