Am Donnerstag, 14. Juli 2016 um 16:06:17, schrieb Brad King
> On 07/14/2016 03:59 PM, Kornel Benko wrote:
> >> What you can do is not add your own flag and instead do
> >>
> >> set(CMAKE_CXX_STANDARD 14)
> >> set(CMAKE_CXX_EXTENSIONS OFF)
> >
> > I did this, as it
Am Donnerstag, 14. Juli 2016 um 15:27:00, schrieb Brad King
> On 07/14/2016 02:48 PM, Kornel Benko wrote:
> > I am asking about '-std=gnu++11'.
> On 07/14/2016 02:45 PM, Kornel Benko wrote:
> > The new cmake-files from QT5.7 are somehow responsible that this happens.
>
>
On 07/14/2016 02:48 PM, Kornel Benko wrote:
> I am asking about '-std=gnu++11'.
On 07/14/2016 02:45 PM, Kornel Benko wrote:
> The new cmake-files from QT5.7 are somehow responsible that this happens.
The file `lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake` in Qt 5.7 contains:
set_property(TARGET
Am Donnerstag, 14. Juli 2016 um 14:36:43, schrieb Brad King
> In lyx I see the
>
> development/cmake/modules/FindCXX11Compiler.cmake
I had to reread.
Yes, I know this file too. There is set the '-std=c++14'. But I am asking about
'-std=gnu++11'.
Kornel
Am Donnerstag, 14. Juli 2016 um 14:36:43, schrieb Brad King
> On 07/14/2016 01:59 PM, Kornel Benko wrote:
> > I was trying to compile lyx with QT5.7.
> > ...
> > found that the flags in the flag.cmake files were mismatched.
> >
> > Therefore I started searching, where the
On 07/14/2016 01:59 PM, Kornel Benko wrote:
> I was trying to compile lyx with QT5.7.
> ...
> found that the flags in the flag.cmake files were mismatched.
>
> Therefore I started searching, where the extra ' --std=gnu++11' came
> from, and found it in Modules/Compiler/GNU-CXX.cmake.
It appears
Am Donnerstag, 14. Juli 2016 um 13:35:06, schrieb Brad King
> On 07/14/2016 01:13 PM, Kornel Benko wrote:
> > -- The CXX compiler identification is GNU 6.1.0
> > -- CMAKE_CXX11_EXTENSION_COMPILE_OPTION = -std=gnu++11
> > I expected here "--
On 07/14/2016 01:13 PM, Kornel Benko wrote:
> -- The CXX compiler identification is GNU 6.1.0
> -- CMAKE_CXX11_EXTENSION_COMPILE_OPTION = -std=gnu++11
> I expected here "-- CMAKE_CXX11_EXTENSION_COMPILE_OPTION = -std=c++14".
That is the option for C++11 with extensions. See
I have 2 compilers installed. The attached minimal CMakeLists.txt example shows
everything OK if
using the compiler at standard place.
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C