D18680: Fix ENABLE_CLAZY option with clazy >= 1.5

Anthony Fieroni noreply at phabricator.kde.org
Sat Feb 2 18:06:46 GMT 2019


anthonyfieroni added inline comments.

INLINE COMMENTS

> KDECMakeSettings.cmake:296
>      if(ENABLE_CLAZY)
> -        set(CMAKE_CXX_COMPILE_OBJECT "${CMAKE_CXX_COMPILE_OBJECT} -Xclang -load -Xclang ClangLazy${CMAKE_SHARED_LIBRARY_SUFFIX} -Xclang -add-plugin -Xclang clang-lazy")
> +        set(CMAKE_CXX_COMPILE_OBJECT "${CMAKE_CXX_COMPILE_OBJECT} -Xclang -load -Xclang ClazyPlugin${CMAKE_SHARED_LIBRARY_SUFFIX} -Xclang -add-plugin -Xclang clang-lazy")
>      endif()

You can use

  find_library(CLAZY ClazyPlugin${CMAKE_SHARED_LIBRARY_SUFFIX})
  if(NOT CLAZY)
    ....
  else
    ....
  endif()

REPOSITORY
  R240 Extra CMake Modules

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

To: elvisangelaccio, apol, smartins
Cc: anthonyfieroni, kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20190202/6720b0f6/attachment.html>


More information about the Kde-buildsystem mailing list