From kde-commits Mon Nov 07 00:20:18 2016 From: Stephen Kelly Date: Mon, 07 Nov 2016 00:20:18 +0000 To: kde-commits Subject: [extra-cmake-modules] tests: Only add the test if python is found Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=147847802705495 Git commit 1232d857690f21b30af553d52513c94be6d29e29 by Stephen Kelly. Committed on 07/11/2016 at 00:20. Pushed by skelly into branch 'master'. Only add the test if python is found M +3 -1 tests/CMakeLists.txt http://commits.kde.org/extra-cmake-modules/1232d857690f21b30af553d52513c94b= e6d29e29 diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 53008e1..2fad234 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -95,7 +95,9 @@ foreach(pyversion 2 3) ) endif() endforeach() -add_test_macro(GenerateSipBindings ${pythonCommands}) +if (pythonCommands) + add_test_macro(GenerateSipBindings ${pythonCommands}) +endif() = add_test_macro(ExecuteCoreModules dummy) add_test_macro(ExecuteKDEModules dummy)