Add __cplusplus for MSVC

This commit is contained in:
e-erdal
2022-06-24 11:42:25 +03:00
parent 23a1dc204a
commit 896ab5478c

View File

@@ -21,6 +21,10 @@ if( APPLE AND NOT XCODE )
set( CMAKE_CXX_FLAGS "-ObjC++" )
endif()
if (MSVC AND (MSVC_VERSION GREATER_EQUAL 1914))
add_compile_options("/Zc:__cplusplus")
endif()
option( BGFX_BUILD_TOOLS "Build bgfx tools." ON )
option( BGFX_BUILD_EXAMPLES "Build bgfx examples." ON )
option( BGFX_INSTALL "Create installation target." ON )