From 4f9732f6c648793dd6ea0d49db2f7d4f6a776a4d Mon Sep 17 00:00:00 2001 From: firewave Date: Mon, 16 Sep 2024 13:56:23 +0200 Subject: [PATCH] cmake/findDependencies.cmake: avoid unnecessary message about matchcompiler when it isn't enabled --- cmake/findDependencies.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/findDependencies.cmake b/cmake/findDependencies.cmake index 01300c9ba0f..1323cdab3f3 100644 --- a/cmake/findDependencies.cmake +++ b/cmake/findDependencies.cmake @@ -42,7 +42,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) if(CMAKE_VERSION VERSION_EQUAL "3.12" OR CMAKE_VERSION VERSION_GREATER "3.12") find_package(Python COMPONENTS Interpreter) - if(NOT Python_Interpreter_FOUND) + if(NOT Python_Interpreter_FOUND AND NOT USE_MATCHCOMPILER_OPT STREQUAL "Off") message(WARNING "No python interpreter found - disabling matchcompiler.") set(USE_MATCHCOMPILER_OPT "Off") endif()