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 source file that adds such flags. Please ask them about it. -Brad -- 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