mirror of https://github.com/mgba-emu/mgba.git
Build fix on OS X for perf util
This commit is contained in:
parent
48e89fb5eb
commit
e141db9493
|
@ -51,8 +51,10 @@ endif()
|
|||
|
||||
if(BUILD_PERF)
|
||||
set(MAIN_SRC ${CMAKE_SOURCE_DIR}/src/platform/perf-main.c)
|
||||
if(UNIX AND NOT APPLE)
|
||||
set(EXTRA_LIB ${EXTRA_LIB} rt)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_executable(${BINARY_NAME} WIN32 ${ARM_SRC} ${GBA_SRC} ${DEBUGGER_SRC} ${RENDERER_SRC} ${UTIL_SRC} ${PLATFORM_SRC} ${OS_SRC} ${MAIN_SRC})
|
||||
target_link_libraries(${BINARY_NAME} m ${DEBUGGER_LIB} ${SDL_LIBRARY} ${SDLMAIN_LIBRARY} ${OPENGL_LIBRARY} ${EXTRA_LIB})
|
||||
|
|
Loading…
Reference in New Issue