diff --git a/CMakeLists.txt b/CMakeLists.txt index b7e03ca..044c67a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 )