summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 347e4603..24be0cdf 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -67,11 +67,13 @@ if (Python_EXECUTABLE)
PROPERTIES ENVIRONMENT "TZ=${Ledger_TEST_TIMEZONE}")
endforeach()
- add_test(NAME demo
- COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/python/demo.py
- WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
- set_tests_properties(demo
- PROPERTIES ENVIRONMENT "TZ=${Ledger_TEST_TIMEZONE};PYTHONPATH=.")
+ if (HAVE_BOOST_PYTHON)
+ add_test(NAME demo
+ COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/python/demo.py
+ WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
+ set_tests_properties(demo
+ PROPERTIES ENVIRONMENT "TZ=${Ledger_TEST_TIMEZONE};PYTHONPATH=.")
+ endif()
endif()
### CMakeLists.txt ends here