Good that makes sense. Since you would do this for java you should be aware that you would also need to do something similar for the c#.
I am using cmake with swig/c# on linux with a mono implementation and this also requires the 'lib' prefix. The language string you would need to check your SWIG_ADD_MODULE language variable against is 'csharp' Cheers Ian -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of William A. Hoffman Sent: 24 February 2006 14:03 To: Appru, Ian Cc: cmake@cmake.org Subject: RE: [CMake] CMake and swig problem At 08:56 AM 2/24/2006, [EMAIL PROTECTED] wrote: >The Java call System.loadLibrary() is platform dependant so should only >need to use System.loadLibrary("MyJNI"). > >It prepends 'lib' and uses .so suffix on unix and uses the .dll suffix >on windows - no prefix. > >I am surprised that python would not also do this - > >I think for now I will create my own local UseSWIG-Java module until >UseSWIG is all things to all people. > >Regards >Ian We can fix this for Java. If Java does not need the prefix to be empty, then we should change it. -Bill _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake