make handling of (temporary) C++11 check disabling define behave consistent across CMake versions

This commit is contained in:
Axel Kohlmeyer
2019-10-15 18:42:59 -04:00
parent 45e8a41704
commit 4aa47386ea

View File

@ -59,8 +59,8 @@ endif()
option(DISABLE_CXX11_REQUIREMENT "Disable check that requires C++11 for compiling LAMMPS" OFF)
if(DISABLE_CXX11_REQUIREMENT)
add_definitions(-DLAMMPS_CXX98)
else()
set(CMAKE_CXX_STANDARD 11)
# else()
# set(CMAKE_CXX_STANDARD 11)
endif()
# GNU compiler features