knossos-ksc/CMakeLists.txt

21 строка
557 B
CMake
Исходник Обычный вид История

cmake_minimum_required(VERSION 3.10)
project(KSC)
2020-08-03 20:53:34 +03:00
# Project-wide. llvm requires at least C++14.
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to")
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS NO)
include("user.cmake")
2020-08-16 15:47:36 +03:00
# Check user.cmake defined what we need
if (NOT EXISTS "${MLIR_DIR}/MLIRConfig.cmake")
message(FATAL_ERROR
"Could not find MLIRConfig.cmake\n"
"${CMAKE_SOURCE_DIR}/user.cmake defined MLIR_DIR as ${MLIR_DIR}\n"
"Expected to find MLIRConfig.cmake there")
endif()
add_subdirectory(mlir)