From 938ab8b59fe44469f721880d105885836734061b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 13 Jun 2007 08:56:29 +0000 Subject: [PATCH] Added -lrt in for SunOS build --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9810bc0f..cb13adf81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)