From 9d8d7017ffb857f1a63eac023a2aa7f2276b5f81 Mon Sep 17 00:00:00 2001 From: Heavybaby5000 Date: Fri, 20 Jun 2025 18:20:53 +0900 Subject: [PATCH] [flang][cmake] Separate FLANG_INCLUDE_TOOLS from FLANG_BUILD_TOOLS --- flang/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt index 56a96f590f0a3..b3f2caff37934 100644 --- a/flang/CMakeLists.txt +++ b/flang/CMakeLists.txt @@ -504,9 +504,10 @@ add_subdirectory(include) add_subdirectory(lib) add_subdirectory(cmake/modules) +option(FLANG_INCLUDE_TOOLS "Generate build targets for the Flang tools." ON) option(FLANG_BUILD_TOOLS "Build the Flang tools. If OFF, just generate build targets." ON) -if (FLANG_BUILD_TOOLS) +if (FLANG_INCLUDE_TOOLS) add_subdirectory(tools) endif()