D16894: [ECM] use a macro to add compiler flags conditionally

Christophe Giboudeaux noreply at phabricator.kde.org
Thu Jan 31 15:12:10 GMT 2019


cgiboudeaux added inline comments.

INLINE COMMENTS

> ECMAddCompilerFlag.cmake:108
> +            check_cxx_compiler_flag(${flag} ${HASFLAG})
> +            if({${HASFLAG}})
> +                set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}" PARENT_SCOPE)

if(HASFLAG)

you're testing the result, not the string

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D16894

To: rjvbb, #build_system, kfunk
Cc: cgiboudeaux, dfaure, kfunk, apol, kde-frameworks-devel, kde-buildsystem, #build_system, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20190131/860cf9c7/attachment.html>


More information about the Kde-buildsystem mailing list