Python: Set environment variable properly
Vicki Pfau vi@endrift.com
Sun, 13 Aug 2017 13:24:51 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/platform/python/CMakeLists.txt
→
src/platform/python/CMakeLists.txt
@@ -50,5 +50,5 @@ endif()
string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/test_" "" TEST_NAME "${TEST}") string(REPLACE ".py" "" TEST_NAME "${TEST_NAME}") add_test(python-${TEST_NAME} ${PYTHON} ${CMAKE_CURRENT_BINARY_DIR}/setup.py pytest --addopts ${TEST}) - set_tests_properties(python-${TEST_NAME} PROPERTIES ${PATH} "${BINDIR}") + set_tests_properties(python-${TEST_NAME} PROPERTIES ENVIRONMENT "${PATH}=${CMAKE_CURRENT_BINARY_DIR}/..") endforeach()