Merge branch 'master' into blender2.8
[blender.git] / tests / CMakeLists.txt
index fa0b86a2637bb56b0328629cf48e29a1f8336507..3ffd9db74e5ab1bf706f65820ea41c38f0ca94c0 100644 (file)
@@ -1,7 +1,8 @@
 
 # Python CTests
-add_subdirectory(python)
+if(WITH_BLENDER AND WITH_PYTHON)
+       add_subdirectory(python)
+endif()
 
 # GTest
 add_subdirectory(gtests)
-