Working on it working on bare debian with install

This commit is contained in:
apio 2022-06-22 20:31:57 +02:00
parent 2d40c2d46d
commit 09efc613f0

View File

@ -1,7 +1,8 @@
cmake_minimum_required(VERSION 3.8...3.22)
cmake_minimum_required(VERSION 3.18...3.22)
project(sapphire-compiler LANGUAGES CXX C)
set(CXX_STANDARD_REQUIRED 20)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(LLVM REQUIRED CONFIG)
@ -62,3 +63,5 @@ llvm_map_components_to_libnames(llvm_libs support core irreader)
# Link against LLVM libraries
target_link_libraries(sapphirec ${llvm_libs})
install(TARGETS sapphirec)