From 5f4e2b601d083bfbd244cd92e4c8c1666b8e97d9 Mon Sep 17 00:00:00 2001 From: Gregory Comer Date: Wed, 27 Mar 2024 21:45:14 -0700 Subject: [PATCH] Restore CMake configure comment (#2723) Summary: A comment at the top of the top-level CMakeLists.txt file was removed previously as part of an update to automatically download buck. I removed more than was needed. This change restores the comment (minus the explicit buck path). Pull Request resolved: https://github.com/pytorch/executorch/pull/2723 Test Plan: This is a comment-only change. I did configure and build on linux x86-64 to validate syntax. Reviewed By: mcr229 Differential Revision: D55445749 Pulled By: GregoryComer fbshipit-source-id: ff8cb601e71be4231f4e853b993bad9f54ea7144 (cherry picked from commit 9922c54214b61289bdbfbf6cc80b62dbfe90ad9a) --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 432a809d357..e0bf6e5e481 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,16 @@ # cloning or pulling the upstream repo. Once this is done, you don't need to do # it again until you pull from the upstream repo again. # +# NOTE: Build options can be configured by passing arguments to cmake. For +# example, to enable the EXECUTORCH_BUILD_XNNPACK option, change the cmake +# command to 'cmake -DEXECUTORCH_BUILD_XNNPACK=ON ..'. +#[[ + (rm -rf cmake-out \ + && mkdir cmake-out \ + && cd cmake-out \ + && cmake ..) +]] +# # ### Build ### # # NOTE: The `-j` argument specifies how many jobs/processes to use when