diff --git a/CMakeLists.txt b/CMakeLists.txt index c17ff893830..c48378d2270 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,6 +161,10 @@ endif() if(EXECUTORCH_BUILD_TESTS) include(CTest) +else() + # It looks like some of our third-party deps will try to turn this on if it's + # not explicitly set, leading to confusing behavior. + set(BUILD_TESTING OFF) endif() add_subdirectory(third-party) @@ -737,7 +741,10 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER) endif() set(CMAKE_EXECUTABLE_SUFFIX ".html") - target_link_options(executor_runner PUBLIC -sALLOW_MEMORY_GROWTH --embed-file "${WASM_MODEL_DIR}@/") + target_link_options( + executor_runner PUBLIC -sALLOW_MEMORY_GROWTH --embed-file + "${WASM_MODEL_DIR}@/" + ) endif() endif()