summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-31 10:01:24 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-31 10:01:24 +0100
commit80531ad4cd7fc957c090124128a7ffc55650071c (patch)
tree338c5fa44e712ae422c43f02859057b53f8789fd /CMakeLists.txt
parent693736bb58dabb8ebfbb5950c37d0a72e2d3bb2a (diff)
downloadsink-80531ad4cd7fc957c090124128a7ffc55650071c.tar.gz
sink-80531ad4cd7fc957c090124128a7ffc55650071c.zip
Cleanup
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files 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)
49 set_target_properties(${target}_analyze PROPERTIES 49 set_target_properties(${target}_analyze PROPERTIES
50 COMPILE_OPTIONS "--analyze" 50 COMPILE_OPTIONS "--analyze"
51 EXCLUDE_FROM_DEFAULT_BUILD true 51 EXCLUDE_FROM_DEFAULT_BUILD true
52 INCLUDE_DIRECTORIES "${INCLUDEs};/work/install/include/KF5/" # Had to hardcode include directory to find KAsync includes 52 INCLUDE_DIRECTORIES "${INCLUDEs};${KDE_INSTALL_FULL_INCLUDEDIR}/KF5/" # Had to hardcode include directory to find KAsync includes
53 COMPILE_FLAGS "${Qt5Core_EXECUTABLE_COMPILE_FLAGS}" # Necessary to get options such as fPic 53 #COMPILE_FLAGS is deprecated, but the only way that -Xanalyzer isn't erronously deduplicated
54 COMPILE_FLAGS "-Xanalyzer -analyzer-eagerly-assume -Xanalyzer -analyzer-opt-analyze-nested-blocks"
54 ) 55 )
56 target_compile_options(${target}_analyze PRIVATE ${Qt5Core_EXECUTABLE_COMPILE_FLAGS})# Necessary to get options such as fPIC
55 add_dependencies(analyze ${target}_analyze) 57 add_dependencies(analyze ${target}_analyze)
56endfunction() 58endfunction()
57 59