File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 999)
2828# Ignore this warning generated during static analysis
2929list (APPEND CTEST_CUSTOM_WARNING_EXCEPTION "linker input file unused because linking not done" )
3030
31+ set (STATIC_ANALYSIS 0)
32+
3133# azonenberg's dev box for testing
3234if (${HOSTNAME} STREQUAL "havequick" )
3335 set (CTEST_SITE dev-havequick)
@@ -97,6 +99,7 @@ elseif(${HOSTNAME} MATCHES "ubuntu-lts" )
9799 elseif ($ENV{ANALYZE} )
98100 set (CTEST_BUILD_NAME x86_64-linux -ubuntu-26-04-llvmpipe-analysis)
99101 message (STATUS "Building for static analysis" )
102+ set (STATIC_ANALYSIS 1)
100103 set (CTEST_BUILD_CONFIGURATION "DebugNoOpt" )
101104 set (CONFIGURE_OPTIONS "-DBUILD_TESTING=ON" "-DANALYZE=ON" )
102105 else ()
@@ -169,7 +172,7 @@ ctest_configure(OPTIONS "${CONFIGURE_OPTIONS}")
169172ctest_build (FLAGS "-j${N_PROCS} " )
170173
171174#Don't run unit tests if doing static analysis
172- if (NOT $ENV{ANALYZE } )
175+ if (NOT ${STATIC_ANALYSIS } )
173176 ctest_test ()
174177endif ()
175178
You can’t perform that action at this time.
0 commit comments