Re: unwanted added compiler arguments

René J.V. Bertin <[email protected]>
Newsgroups gmane.comp.kde.users.kdevelop
Message-ID <1693267.7jWKfGL91I@bola>
On Monday October 30 2017 13:48:24 Aleix Pol wrote:

>It seems logical to me that c++14 is passed if you specify
>"set(CMAKE_CXX_STANDARD 14)".

My thoughts exactly.

CMake has a habit of appending its arguments after any you set yourself, unless you target the appropriate variables for the build type you've chosen.
Or unless you select a custom build type, like Debian and Ubuntu do (or used to do? CMAKE_BUILD_TYPE=Debian). But I guess that even in that case arguments to come from settings like the one above will get appended (and that would actually make sense).

R.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.