mirror of https://github.com/bjornbytes/lovr.git
CMake: explicitly link with objc runtime on macOS;
This commit is contained in:
parent
0f338c3ebd
commit
158fcca994
|
@ -569,6 +569,7 @@ if(WIN32)
|
||||||
move_dll(${LOVR_MSDF})
|
move_dll(${LOVR_MSDF})
|
||||||
target_compile_definitions(lovr PRIVATE -DLOVR_GL)
|
target_compile_definitions(lovr PRIVATE -DLOVR_GL)
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
|
target_link_libraries(lovr objc)
|
||||||
target_sources(lovr PRIVATE src/core/os_macos.c)
|
target_sources(lovr PRIVATE src/core/os_macos.c)
|
||||||
target_compile_definitions(lovr PRIVATE -DLOVR_GL)
|
target_compile_definitions(lovr PRIVATE -DLOVR_GL)
|
||||||
if(LOVR_BUILD_BUNDLE)
|
if(LOVR_BUILD_BUNDLE)
|
||||||
|
|
Loading…
Reference in New Issue