Fix *_LIBRARY into *_LIB

This commit is contained in:
Jeffrey Pfau 2014-01-31 01:13:51 -08:00
parent 4bc8f2eb1a
commit bc9fdc1249
1 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ if(WIN32)
source_group("Windows-specific code" FILES ${OS_SRC})
else()
add_definitions(-DUSE_PTHREADS)
set(OS_LIBRARY "${OS_LIBRARY};pthread")
set(OS_LIB "${OS_LIB};pthread")
file(GLOB OS_SRC ${CMAKE_SOURCE_DIR}/src/platform/posix/*.c)
source_group("POSIX-specific code" FILES ${OS_SRC})
endif()
@ -49,9 +49,9 @@ endif()
if(BUILD_PERF)
set(PERF_SRC ${CMAKE_SOURCE_DIR}/src/platform/perf-main.c)
if(UNIX AND NOT APPLE)
set(PERF_LIB "$PERF_LIB};rt")
set(PERF_LIB "${PERF_LIB};rt")
endif()
add_executable(${BINARY_NAME}-perf ${PERF_SRC})
target_link_libraries(${BINARY_NAME}-perf ${BINARY_NAME} ${PERF_LIBRARY})
target_link_libraries(${BINARY_NAME}-perf ${BINARY_NAME} ${PERF_LIB})
endif()