From 80531ad4cd7fc957c090124128a7ffc55650071c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 31 Jan 2016 10:01:24 +0100 Subject: Cleanup --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d60e7d2..f96f631 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,9 +49,11 @@ function(add_clang_static_analysis target) set_target_properties(${target}_analyze PROPERTIES COMPILE_OPTIONS "--analyze" EXCLUDE_FROM_DEFAULT_BUILD true - INCLUDE_DIRECTORIES "${INCLUDEs};/work/install/include/KF5/" # Had to hardcode include directory to find KAsync includes - COMPILE_FLAGS "${Qt5Core_EXECUTABLE_COMPILE_FLAGS}" # Necessary to get options such as fPic + INCLUDE_DIRECTORIES "${INCLUDEs};${KDE_INSTALL_FULL_INCLUDEDIR}/KF5/" # Had to hardcode include directory to find KAsync includes + #COMPILE_FLAGS is deprecated, but the only way that -Xanalyzer isn't erronously deduplicated + COMPILE_FLAGS "-Xanalyzer -analyzer-eagerly-assume -Xanalyzer -analyzer-opt-analyze-nested-blocks" ) + target_compile_options(${target}_analyze PRIVATE ${Qt5Core_EXECUTABLE_COMPILE_FLAGS})# Necessary to get options such as fPIC add_dependencies(analyze ${target}_analyze) endfunction() -- cgit v1.2.3