Build fix on OS X for perf util

This commit is contained in:
Jeffrey Pfau 2014-01-16 00:32:51 -08:00
parent 48e89fb5eb
commit e141db9493
1 changed files with 3 additions and 1 deletions

View File

@ -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})