cyclus/core — pull request #229 by katyhuff (2012-07-01 02:19:15+00:00)
Title: This may fix issue #228 for the CAE machines. Please check it.

The reason I wasn't seeing @gidden's symptom on lise was that it had a /usr/lib/libgtest.so installed (i guess I installed it with cae-apt a while ago). Once I deleted that, I got the symptom and now have a patch. It seems to work both on MacOSX and on the CAE machine, lise.

For posterity, here are some details about why this is complicated :

I've tried to set cmake up to link properly with relative paths no matter what your ld_library_paths are. However, there's a lot of complication with "RPATH handling" in cmake.
http://www.cmake.org/Wiki/CMake_RPATH_handling

It seems clear that RPATH works differently on different platforms and that some systems ignore RPATHS from cmake (namely MACOSX). The property setting is meant to help with the OSX situation while the section added in this commit is meant to help in the linux situation where LD_LIBRARY_PATH doesn't lead to the install prefix directory.