diff options
author | Keith Winstein <keithw@cs.stanford.edu> | 2023-07-30 09:38:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-30 09:38:48 -0700 |
commit | 319f0c6112caa407c6b354772beda4ef986bac72 (patch) | |
tree | 6785093c7a1ebf0738d8bbe721515dc4b212d4fa /CMakeLists.txt | |
parent | e37de9dedfc7037cea09ca3c75fd5a544d68cb2a (diff) | |
download | wabt-319f0c6112caa407c6b354772beda4ef986bac72.tar.gz wabt-319f0c6112caa407c6b354772beda4ef986bac72.tar.bz2 wabt-319f0c6112caa407c6b354772beda4ef986bac72.zip |
Fix CI from upgraded cmake version on GitHub Ubuntu runner (#2273)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d8add54..3f475b92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -659,7 +659,7 @@ if (BUILD_TESTS) find_package(Threads REQUIRED) # Python 3.5 is the version shipped in Ubuntu Xenial - find_package(PythonInterp 3.5 REQUIRED) + find_package(Python3 3.5 REQUIRED COMPONENTS Interpreter) if (NOT USE_SYSTEM_GTEST) if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/gtest/googletest) @@ -718,7 +718,7 @@ if (BUILD_TESTS) set(RUN_TESTS_PY ${WABT_SOURCE_DIR}/test/run-tests.py) add_custom_target(run-tests - COMMAND ${CMAKE_COMMAND} -E env WASM2C_CC=${CMAKE_C_COMPILER} WASM2C_CFLAGS=${WASM2C_CFLAGS} ${PYTHON_EXECUTABLE} ${RUN_TESTS_PY} --bindir $<TARGET_FILE_DIR:wat2wasm> + COMMAND ${CMAKE_COMMAND} -E env WASM2C_CC=${CMAKE_C_COMPILER} WASM2C_CFLAGS=${WASM2C_CFLAGS} ${Python3_EXECUTABLE} ${RUN_TESTS_PY} --bindir $<TARGET_FILE_DIR:wat2wasm> DEPENDS ${WABT_EXECUTABLES} WORKING_DIRECTORY ${WABT_SOURCE_DIR} USES_TERMINAL @@ -732,7 +732,7 @@ if (BUILD_TESTS) ) add_custom_target(run-c-api-tests - COMMAND ${PYTHON_EXECUTABLE} ${WABT_SOURCE_DIR}/test/run-c-api-examples.py --bindir $<TARGET_FILE_DIR:wat2wasm> + COMMAND ${Python3_EXECUTABLE} ${WABT_SOURCE_DIR}/test/run-c-api-examples.py --bindir $<TARGET_FILE_DIR:wat2wasm> WORKING_DIRECTORY ${WABT_SOURCE_DIR} USES_TERMINAL ) |