Skip to content
Snippets Groups Projects
Commit 543a4e2c authored by Gerardo Tauriello's avatar Gerardo Tauriello
Browse files

Try to force C++11 for older compilers.

parent 1f2dae67
No related branches found
No related tags found
No related merge requests found
...@@ -897,7 +897,7 @@ macro(setup_compiler_flags) ...@@ -897,7 +897,7 @@ macro(setup_compiler_flags)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing" ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing" )
endif() endif()
#message(STATUS "GCC VERSION " ${_GCC_VERSION}) #message(STATUS "GCC VERSION " ${_GCC_VERSION})
if ((ENABLE_INFO OR ENABLE_GUI) AND _GCC_VERSION LESS "60") if (_GCC_VERSION LESS "60")
# for older compilers we need to enable C++11 for Qt5 # for older compilers we need to enable C++11 for Qt5
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif() endif()
......
...@@ -23,7 +23,7 @@ the steps which we describe in detail below. In essence, these steps are: ...@@ -23,7 +23,7 @@ the steps which we describe in detail below. In essence, these steps are:
Installing the Dependencies Installing the Dependencies
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
OpenStructure requires a c++11 enabled compiler (e.g. recent gcc/clang) and uses OpenStructure requires a C++11 enabled compiler (e.g. recent gcc/clang) and uses
a bunch of open-source libraries. If you haven't already installed them, please a bunch of open-source libraries. If you haven't already installed them, please
install them now! Where appropriate, the minimally required version is given in install them now! Where appropriate, the minimally required version is given in
parentheses. parentheses.
......
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