Added -lrt in for SunOS build

This commit is contained in:
Robert Osfield 2007-06-13 08:56:29 +00:00
parent 3c4730bdce
commit 938ab8b59f

View File

@ -61,6 +61,10 @@ IF(CMAKE_SYSTEM MATCHES IRIX)
SET(CMAKE_THREAD_LIBS_INIT "" CACHE INTERNAL "")
ENDIF(CMAKE_SYSTEM MATCHES IRIX)
IF(SunOS)
# SunOS requires -lrt to link otherwise undefined sybmol sched_yield is reported.
SET(CMAKE_THREAD_LIBS_INIT ${CMAKE_THREAD_LIBS_INIT} " " -lrt)
ENDIF(SunOS)
# Find OpenGL
FIND_PACKAGE(OpenGL)