Skip to content

Commit a43cfd1

Browse files
committed
Don't run pyunit tests if python bindings are not built (thanks Daniel Franke)
1 parent aad5db0 commit a43cfd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ if (GTEST_FOUND AND HDF5_FOUND AND BUILD_CUDA_LIB)
6464
target_link_libraries(flann_cuda_test flann_cpp ${HDF5_LIBRARIES} flann_cuda)
6565
endif()
6666

67+
6768
#---------- pyunit tests --------------
68-
if (PYTHON_EXECUTABLE)
69+
if (BUILD_PYTHON_BINDINGS)
6970
flann_add_pyunit(test_nn.py)
7071
flann_add_pyunit(test_nn_index.py)
7172
flann_add_pyunit(test_index_save.py)

0 commit comments

Comments
 (0)