From ea3630e8d4df1d4a4dd9f0f97c0cac33261fea36 Mon Sep 17 00:00:00 2001 From: eopXD Date: Tue, 6 Sep 2022 00:31:58 -0700 Subject: [PATCH] [CMake][MLGO] Fix cmake for MLGO The if-statement should check whehter TFLITE is on or not rather than if the variable is specified. Reviewed By: mtrofin Differential Revision: https://reviews.llvm.org/D132902 --- llvm/lib/Analysis/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/CMakeLists.txt b/llvm/lib/Analysis/CMakeLists.txt index 4bf14a8..274b513 100644 --- a/llvm/lib/Analysis/CMakeLists.txt +++ b/llvm/lib/Analysis/CMakeLists.txt @@ -18,7 +18,7 @@ if (DEFINED LLVM_HAVE_TF_AOT OR DEFINED LLVM_HAVE_TF_API) endif() if (DEFINED LLVM_HAVE_TF_API) - if (DEFINED LLVM_HAVE_TFLITE) + if (LLVM_HAVE_TFLITE) build_proto( tensorflow/core/protobuf/error_codes tensorflow/core/example/feature -- 2.7.4