Am Donnerstag, 14. Juli 2016 um 14:36:43, schrieb Brad King 
<brad.k...@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

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to