Re: [CMake] Installation corrupts library on OS X

2014-10-14 Thread Peter Eastman
Hi Clint, In my case, it wasn't anything like that. I was only specifying /usr/local/cuda/lib once. More specifically, my CMakeLists.txt specified TARGET_LINK_LIBRARIES(${SHARED_TARGET} ${CUDA_LIBRARIES}) where CUDA_LIBRARIES is /usr/local/cuda/lib/libcudart.dylib-Wl,-rpath-Wl,/usr/local/cud

Re: [CMake] Installation corrupts library on OS X

2014-10-14 Thread Peter Eastman
Hi Clint, You're absolutely right: $ otool -l libOpenMMAmoebaCUDA.dylib | grep -A2 LC_RPATH cmd LC_RPATH cmdsize 32 path /usr/local/cuda/lib (offset 12) -- cmd LC_RPATH cmdsize 32 path /usr/local/cuda/lib (offset 12) I'll try to figure out where

[CMake] Installation corrupts library on OS X

2014-10-13 Thread Peter Eastman
Hi, I'm using CMake 3.0.2 on OS X 10.9.4. When I do a "make install", it's somehow corrupting some of my libraries at install time. Here is what otool reports for the library in my build directory - that is, the state of the library prior to installation: $ otool -L libOpenMMAmoebaCUDA.dylib

[CMake] Dependencies between libraries

2012-03-23 Thread Peter Eastman
My project involves a set of plugin libraries. Those libraries get loaded dynamically at runtime, e.g. by calling dlopen(). The user can install them to any location they want, so the directory won't necessarily be in the library path. I can safely assume, though, that they'll all be in the s