Re: [CMake] Setting install_name on Mac OSX 10.5

2008-10-21 Thread Gerrick Bivins
I dug around in the UseSwig.cmake file and the SWIG_ADD_MODULE macro is the source of the problems. It removes the prefix and only creates a MODULE. I copied the macro and modified it in my CMakeLists.txt file to simply call add_library with the SHARED option as listed below and install_name is def

Re: [CMake] Setting install_name on Mac OSX 10.5

2008-10-20 Thread Gerrick Bivins
Hi Mike, The generated jni libraries have no prefix and the ".so" suffix. I can only find two macros defined for swig but that could be just be my ignorance: SWIG_ADD_MODULE(name language interfacefile) ==> generate a module named "name" for language "language" given the swig interface file "inte

Re: [CMake] Setting install_name on Mac OSX 10.5

2008-10-20 Thread Michael Jackson
I can suggest all sorts of ways to set the install_name of the libraries BUT I would rather figure out _why_ the swig generated libraries are getting the "../../lib" prefix in the first place. I don't have any experience with swig so I can only guess at this point. Does swig have its own se

[CMake] Setting install_name on Mac OSX 10.5

2008-10-20 Thread Gerrick Bivins
Hello all, I¹m trying to use swig (SWIG_ADD_MODULE, SWIG_LINK_LIBRARIES) to generate java bindings for a library (contains a couple of sub libraries, similar to VTK¹s setup). I haven¹t been able to load the generated shared libraries. There were a couple of issues: 1. My jvm won¹t load shared libra