On Mon, May 12, 2008 at 8:14 AM, Ralf Corsepius <rc040203(a)freenet.de> wrote:
-- Looking for pthread_yield
CMake Error at CMakeLists.txt:9 (ADD_EXECUTABLE):
Target "cmTryCompileExec" links to item " -lpthread" which has
leading
or
trailing whitespace. This is now an error according to policy
CMP0004.
It seems related to:
http://www.cmake.org/pipermail/cmake-commits/2008-March/003605.html
so you probably just need to find out where in OSG cmakefiles "
-lpthread" was added that leading whitespace and get rid of it.