From a8c4737494818e6591cac2191bf3a49cbe990173 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 15 May 2023 11:34:26 +0800 Subject: fix issue #132. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index fc2c234..3ecec9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,10 @@ enable_language(CXX) include_directories(src src/3rdParty ${LUA_INCLUDE_DIR}) add_definitions(-std=c++17 -O3 -fPIC) +if (APPLE) + add_definitions(-Wno-deprecated-declarations) +endif () + add_library(libyue MODULE src/yuescript/ast.cpp src/yuescript/parser.cpp -- cgit v1.2.3-55-g6feb