From 40a59abef822fc74aae39ff463c035396ae7768e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Wed, 9 Feb 2022 17:37:55 +0100 Subject: [PATCH] cmake: warning message when python3 is not found --- cmake/findDependencies.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/findDependencies.cmake b/cmake/findDependencies.cmake index 2527133f..f730c094 100644 --- a/cmake/findDependencies.cmake +++ b/cmake/findDependencies.cmake @@ -12,6 +12,9 @@ else() endif() find_package (Python3 COMPONENTS Interpreter) +if (NOT Python3_Interpreter_FOUND) + message(WARNING "Python3 was not found. Python tests under the 'tests' folder will not be executed") +endif() # don't use Frameworks on the Mac (#966) if (APPLE)