[cmake-developers] Wrong cxx-extension flags
Kornel Benko
kornel at lyx.org
Thu Jul 14 14:45:37 EDT 2016
Am Donnerstag, 14. Juli 2016 um 14:36:43, schrieb Brad King <brad.king at kitware.com>
> 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 there but only in a table. Other settings are required
> to get the table entry to be used. See the CXX_STANDARD target
> property:
>
> https://cmake.org/cmake/help/v3.6/prop_tgt/CXX_STANDARD.html
>
> Unless you or the project is setting that (perhaps via the
> CMAKE_CXX_STANDARD variable) then CMake won't add any flags.
>
> In lyx I see the
>
> development/cmake/modules/FindCXX11Compiler.cmake
No, this file is only used for QT4.
The new cmake-files from QT5.7 are somehow responsible that this happens.
If I compile with QT5.6 (which also has files like Qt5CoreConfig.cmake) no such problem occurs.
> source file that adds such flags. Please ask them about it.
I know, I am one of the creators. But, as already said, this is not the case here.
> -Brad
Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160714/70d90eac/attachment.sig>
More information about the cmake-developers
mailing list