aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-11-07 00:19:52 +0000
committerStephen Kelly <steveire@gmail.com>2016-11-07 00:20:11 +0000
commit1232d857690f21b30af553d52513c94be6d29e29 (patch)
tree60bbec7591468d893088c3d0bccd1de05e4f00d4
parent144152c72debd85dfc48de1f2acf1fdb9bfcdec5 (diff)
downloadextra-cmake-modules-1232d857690f21b30af553d52513c94be6d29e29.tar.gz
extra-cmake-modules-1232d857690f21b30af553d52513c94be6d29e29.tar.bz2
Only add the test if python is found
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 53008e15..2fad234f 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)