[Fix] (cmake): fix compilation on MSVC

This commit is contained in:
2025-11-24 09:33:59 +08:00
parent 9cd749b707
commit 1c318db4a0
+3
View File
@@ -19,6 +19,9 @@ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" OR MOBILEGL_FORCE_RELEASE_OPT)
endif()
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
add_compile_options(/Zc:preprocessor)
endif()
enable_language(CXX)