From e141db9493f7342a091e06b4a2b0902634b76bef Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 16 Jan 2014 00:32:51 -0800 Subject: [PATCH] Build fix on OS X for perf util --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b7347456c..6e0a81e8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,9 @@ endif() if(BUILD_PERF) set(MAIN_SRC ${CMAKE_SOURCE_DIR}/src/platform/perf-main.c) - set(EXTRA_LIB ${EXTRA_LIB} rt) + 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})