Index: bindings/python/tests/CMakeLists.txt =================================================================== --- bindings/python/tests/CMakeLists.txt +++ bindings/python/tests/CMakeLists.txt @@ -1,7 +1,9 @@ # Test target to run Python test suite from main build. add_custom_target(check-clang-python - COMMAND CLANG_LIBRARY_PATH=$ ${PYTHON_EXECUTABLE} -m unittest discover + COMMAND ${CMAKE_COMMAND} -E env + CLANG_LIBRARY_PATH=$ + ${PYTHON_EXECUTABLE} -m unittest discover DEPENDS libclang WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..)