From 09efc613f06f3afb5fba3a21bbc132f86f0a2a64 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 22 Jun 2022 20:31:57 +0200 Subject: [PATCH] Working on it working on bare debian with install --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3424a59..060c378 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) \ No newline at end of file