From c1a9d5c77ab783150ec7b2a4de71fdb7cb6513c1 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 8 Jul 2023 17:32:49 +0800 Subject: [PATCH] ... --- CMakeLists.txt | 2 +- c_bindings/CMakeLists.txt | 1 - docs/LuaC-API/introduction.md | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2324ef5e..c406d834 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fexceptions -O2") endif() -option(PK_EXPORT_C_API "Export C API" OFF) +option(PK_EXPORT_C_API "Export C API" ON) include_directories(${CMAKE_CURRENT_LIST_DIR}/include) diff --git a/c_bindings/CMakeLists.txt b/c_bindings/CMakeLists.txt index 21c1783b..834102d2 100644 --- a/c_bindings/CMakeLists.txt +++ b/c_bindings/CMakeLists.txt @@ -4,7 +4,6 @@ project(test_c_bindings) set(CMAKE_C_STANDARD 11) -option(PK_EXPORT_C_API "Export C API" ON) option(PK_BUILD_STATIC_LIB "Build static library" ON) add_subdirectory( diff --git a/docs/LuaC-API/introduction.md b/docs/LuaC-API/introduction.md index 49129e10..38b9322d 100644 --- a/docs/LuaC-API/introduction.md +++ b/docs/LuaC-API/introduction.md @@ -12,8 +12,6 @@ true if it succeeded false if it did not. Special thanks for [@koltenpearson](https://github.com/koltenpearson) for bringing us the Lua Style API implementation. !!! -Set option `PK_EXPORT_C_API` to `ON` to enable the C API in cmake build process. - ## Basic Functions #### `pkpy_vm* pkpy_vm_create(bool use_stdio, bool enable_os)`