mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 14:18:31 +09:00
[Fix] (CMake): make MSVC properly report __cplusplus macro
This commit is contained in:
@@ -31,6 +31,7 @@ endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
add_compile_options(/Zc:preprocessor)
|
||||
add_compile_options(/Zc:__cplusplus)
|
||||
endif()
|
||||
|
||||
enable_language(CXX)
|
||||
|
||||
Reference in New Issue
Block a user