Fix missing -ObjC flag.

This commit is contained in:
Robert D. Blanchet Jr
2019-04-06 11:01:47 -07:00
committed by Joshua Brookover
parent 8eb363a378
commit c3f52fd76e

View File

@@ -16,6 +16,9 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if( APPLE and NOT IOS )
set( CMAKE_CXX_FLAGS "-ObjC++" )
endif()
option( BGFX_BUILD_TOOLS "Build bgfx tools." ON )
option( BGFX_BUILD_EXAMPLES "Build bgfx examples." ON )