Skip to content

Commit

Permalink
[circle-mlir] Introduce initial CMakeLists (#14629)
Browse files Browse the repository at this point in the history
This will introduce initial CMakeLists file.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
  • Loading branch information
seanshpark authored Feb 11, 2025
1 parent 1125136 commit bbfc321
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions circle-mlir/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit bbfc321

Please sign in to comment.