From bbfc3217f84b2ace213415b6f802a6e14ce7a4d7 Mon Sep 17 00:00:00 2001 From: SaeHie Park Date: Tue, 11 Feb 2025 12:58:03 +0900 Subject: [PATCH] [circle-mlir] Introduce initial CMakeLists (#14629) This will introduce initial CMakeLists file. ONE-DCO-1.0-Signed-off-by: SaeHie Park --- circle-mlir/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 circle-mlir/CMakeLists.txt diff --git a/circle-mlir/CMakeLists.txt b/circle-mlir/CMakeLists.txt new file mode 100644 index 00000000000..77d4689f183 --- /dev/null +++ b/circle-mlir/CMakeLists.txt @@ -0,0 +1,19 @@ +# Match the minimum required version of LLVM and MLIR +cmake_minimum_required(VERSION 3.13.4) + +project(circle-mlir) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Type of build" FORCE) +endif() + +set(CMAKE_POSITION_INDEPENDENT_CODE ON) +add_compile_options("-fexceptions") + +# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24: +if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0") + cmake_policy(SET CMP0135 NEW) +endif()