From e9b42933377814248b64c4fed9f58bae219443c6 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Fri, 22 Nov 2019 00:21:56 -0800 Subject: Fix run-tests target on windows (#1247) Under windows binaries end with `.exe` and live a the `Debug` or `Release` subdirectory so we need to use $ to get the full executable name. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d4d54c7..6452dc85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -499,8 +499,8 @@ if (NOT EMSCRIPTEN) find_package(PythonInterp 2.7 REQUIRED) set(RUN_TESTS_PY ${WABT_SOURCE_DIR}/test/run-tests.py) add_custom_target(run-tests - COMMAND ${CMAKE_BINARY_DIR}/wabt-unittests - COMMAND ${PYTHON_EXECUTABLE} ${RUN_TESTS_PY} --bindir ${CMAKE_BINARY_DIR} + COMMAND $ + COMMAND ${PYTHON_EXECUTABLE} ${RUN_TESTS_PY} --bindir $ DEPENDS ${WABT_EXECUTABLES} WORKING_DIRECTORY ${WABT_SOURCE_DIR} ${USES_TERMINAL} -- cgit v1.2.3