From 6c30a19c8a4f086fd538c722e68f306231ca0bad Mon Sep 17 00:00:00 2001 From: jhoyt4 Date: Sat, 4 Jan 2025 15:15:27 -0500 Subject: [PATCH] cmake: Fix Static Analyis when plugins build is disabled --- cmake/StaticAnalysis.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/StaticAnalysis.cmake b/cmake/StaticAnalysis.cmake index 6929a1f03f7..d153ac71f54 100644 --- a/cmake/StaticAnalysis.cmake +++ b/cmake/StaticAnalysis.cmake @@ -41,8 +41,10 @@ function(sa_super) # sub-projects. ExternalProject_Get_Property(MythTV BINARY_DIR) set(MythTV_BINARY_DIR ${BINARY_DIR}) - ExternalProject_Get_Property(MythPlugins BINARY_DIR) - set(MythPlugins_BINARY_DIR ${BINARY_DIR}) + if(MYTH_BUILD_PLUGINS) + ExternalProject_Get_Property(MythPlugins BINARY_DIR) + set(MythPlugins_BINARY_DIR ${BINARY_DIR}) + endif() # CMake always builds a compile_commands.json file in the binary # directory. Add support for combining these into a single