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

Enable C++11 when needed with Qt5.

parent a0f0fb2e
No related branches found
No related tags found
No related merge requests found
...@@ -896,6 +896,12 @@ macro(setup_compiler_flags) ...@@ -896,6 +896,12 @@ macro(setup_compiler_flags)
# -fno-strict-aliasing # -fno-strict-aliasing
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})
if ((ENABLE_INFO OR ENABLE_GUI) AND _GCC_VERSION LESS "60")
# for older compilers we need to enable C++11 for Qt5
#message(STATUS "ADDING C++11 FLAG")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()
endif() endif()
endmacro() endmacro()
set(_BOOST_MIN_VERSION 1.31) set(_BOOST_MIN_VERSION 1.31)
......
...@@ -46,7 +46,7 @@ When you enable support for image processing, you will need: ...@@ -46,7 +46,7 @@ When you enable support for image processing, you will need:
If you would like to use the info module, also install: If you would like to use the info module, also install:
* `Qt5 <http://qt-project.org/>`_ * `Qt5 <http://qt-project.org/>`_ and a C++11 compatible compiler
If you would like to use the graphical user interface (GUI), also install: If you would like to use the graphical user interface (GUI), also install:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment