Cocos Creator version
3.8.8
System information
Windows 11
Issue description
Environment
Cocos Creator version: 3.8.8
Platform: Android (arm64-v8a, armeabi-v7a)
OS: Windows
Description
When building for Android with the Spine module disabled in Project Settings (both spine-3.8 and spine-4.2 are unchecked), the native CMake build still sets USE_SPINE=ON, causing a fatal compilation error because the Spine runtime headers are not present.
Evidence from build log
The CMake config generated by the editor correctly sets:
(from builder config: "USE_SPINE_3_8":"set(USE_SPINE_3_8 OFF)","USE_SPINE_4_2":"set(USE_SPINE_4_2 OFF)")
However, the resolved CMake options still show:
This results in the compiler flags -DCC_USE_SPINE=1 -DCC_USE_MIDDLEWARE=1, which causes Engine.cpp to include Spine headers:
Expected behavior
When both USE_SPINE_3_8 and USE_SPINE_4_2 are OFF, USE_SPINE should also resolve to OFF. The CMake logic should derive USE_SPINE from the sub-options, e.g.:
Relevant error log output
No response
Steps to reproduce
- Create a project in Cocos Creator 3.8.8
- In Project Settings > Feature Cropping, disable/uncheck the Spine module (both 3.8 and 4.2)
- Build for Android (native)
- Build fails with fatal error: 'spine/spine.h' file not found
Minimal reproduction project
No response
Cocos Creator version
3.8.8
System information
Windows 11
Issue description
Environment
Cocos Creator version: 3.8.8
Platform: Android (arm64-v8a, armeabi-v7a)
OS: Windows
Description
When building for Android with the Spine module disabled in Project Settings (both spine-3.8 and spine-4.2 are unchecked), the native CMake build still sets USE_SPINE=ON, causing a fatal compilation error because the Spine runtime headers are not present.
Evidence from build log
The CMake config generated by the editor correctly sets:
(from builder config: "USE_SPINE_3_8":"set(USE_SPINE_3_8 OFF)","USE_SPINE_4_2":"set(USE_SPINE_4_2 OFF)")
However, the resolved CMake options still show:
This results in the compiler flags -DCC_USE_SPINE=1 -DCC_USE_MIDDLEWARE=1, which causes Engine.cpp to include Spine headers:
Expected behavior
When both USE_SPINE_3_8 and USE_SPINE_4_2 are OFF, USE_SPINE should also resolve to OFF. The CMake logic should derive USE_SPINE from the sub-options, e.g.:
Relevant error log output
No response
Steps to reproduce
Minimal reproduction project
No response