A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix: Use SYSTEM include for QuickJS to prevent version file scanning
esengine006d2452c793
diff --git a/CMakeLists.txt b/CMakeLists.txtindex 9386ff7fe..926085276 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -167,9 +167,9 @@ target_include_directories(esengine${CMAKE_CURRENT_SOURCE_DIR}/third_party/stb)-# Add QuickJS include path only for native platform (PRIVATE to avoid polluting consumers)+# Add QuickJS include path only for native platform (SYSTEM to prevent version file issues)if(NOT ES_BUILD_WEB AND NOT ES_BUILD_WXGAME)- target_include_directories(esengine PRIVATE ${QUICKJS_INCLUDE_DIR})+ target_include_directories(esengine SYSTEM PRIVATE ${QUICKJS_INCLUDE_DIR})endif()target_link_libraries(esengine PUBLIC glm)diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txtindex e326f7751..f6240d2c8 100644--- a/third_party/CMakeLists.txt+++ b/third_party/CMakeLists.txt@@ -49,10 +49,10 @@ if(NOT ES_BUILD_WEB AND NOT ES_BUILD_WXGAME))add_library(quickjs STATIC ${QUICKJS_SOURCES})- # Use PRIVATE to avoid exposing quickjs internal files (like 'version' text file)- # which could be mistakenly included as headers by the compiler- # Consumers should link quickjs and add the include path themselves if needed- target_include_directories(quickjs PRIVATE+ # Use SYSTEM PRIVATE to avoid exposing quickjs internal files (like 'version' text file)+ # SYSTEM tells compiler to treat this as a system include (less strict scanning)+ # PRIVATE ensures only quickjs library itself can see these headers+ target_include_directories(quickjs SYSTEM PRIVATE${CMAKE_CURRENT_SOURCE_DIR}/quickjs)# Provide a variable for consumers to add QuickJS include path