From c784b7b49058c87e90694347ca463739d3ec31d0 Mon Sep 17 00:00:00 2001 From: ValKmjolnir Date: Wed, 11 Dec 2024 20:17:37 +0800 Subject: [PATCH] :memo: adjust build config --- CMakeLists.txt | 4 ++++ makefile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a58c3d..69c03f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,10 @@ if(MSVC) add_compile_options(/utf-8) endif() +if (APPLE) + add_compile_options(-mmacosx-version-min=10.15) +endif() + # generate release executables set(CMAKE_BUILD_TYPE "Release") diff --git a/makefile b/makefile index 7ffe405..4482512 100644 --- a/makefile +++ b/makefile @@ -295,7 +295,7 @@ clean: @ rm $(NASAL_OBJECT) .PHONY: test -test:nasal +test: @ ./nasal -t -d test/andy_gc_test.nas @ ./nasal test/argparse_test.nas @ ./nasal -e test/ascii-art.nas