[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [extra-cmake-modules] tests: Only add the test if python is found
From:       Stephen Kelly <steveire () gmail ! com>
Date:       2016-11-07 0:20:18
Message-ID: E1c3Xfe-0001uR-43 () code ! kde ! org
[Download RAW message or body]

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)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic