Skip to content

Commit 9711956

Browse files
CMakeLists.txt: disabling static analysis config if not top level / used as submodule; this allows top level to do the config itself
1 parent 15cdbcb commit 9711956

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS on)
3232

3333
include(GNUInstallDirs)
3434

35+
if (NOT PROJECT_IS_TOP_LEVEL)
36+
set(STATIC_ANALYSIS OFF)
37+
endif()
38+
3539
if(STATIC_ANALYSIS)
3640
include(cmake/static_analysis.cmake)
3741
endif()

0 commit comments

Comments
 (0)