From f53899f135669aaacd60294eabbdc09341c7b2c6 Mon Sep 17 00:00:00 2001 From: Semphris Date: Sat, 16 Apr 2022 12:34:19 -0400 Subject: [PATCH] Added option to disable the interpreter --- CMakeLists.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c2b3c9f..f1a9f42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,15 +35,23 @@ endif() add_subdirectory(squirrel) add_subdirectory(sqstdlib) -add_subdirectory(sq) +if(NOT SQ_DISABLE_INTERPRETER) + add_subdirectory(sq) +endif() if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(tgts) if(NOT DISABLE_DYNAMIC) - list(APPEND tgts squirrel sqstdlib sq) + list(APPEND tgts squirrel sqstdlib) + if(NOT SQ_DISABLE_INTERPRETER) + list(APPEND tgts sq) + endif() endif() if(NOT DISABLE_STATIC) - list(APPEND tgts squirrel_static sqstdlib_static sq_static) + list(APPEND tgts squirrel_static sqstdlib_static) + if(NOT SQ_DISABLE_INTERPRETER) + list(APPEND tgts sq_static) + endif() endif() foreach(t ${tgts}) target_compile_definitions(${t} PUBLIC -D_SQ64)