Thanks for your reply Brad, I did (eventually) spot this line in the SWIG_ADD_MODULE macro.
As I mentioned in conversation with Bill - think the thread accidentally went private there - I have decided to use my own UseSWIG-Java module and just remove this line. This is because I would like to use all the cmake logic in this area rather than override the PREFIX property with values relevant to all the platforms I am using (solaris/linux/XP). Not sure it is the swig convention to generate unix libs with no 'lib' prefix since it is the target language which controls this platform specific requirement - java, python etc Regards Ian -----Original Message----- From: Brad King [mailto:[EMAIL PROTECTED] Sent: 24 February 2006 13:39 To: Appru, Ian Cc: [EMAIL PROTECTED]; cmake@cmake.org Subject: Re: [CMake] CMake and swig problem [EMAIL PROTECTED] wrote: > I have retried my swig build with a version of cmake downloaded > yesterday > >>cmake --version >>cmake version 2.3-20060222 > > Problem still exists - the solaris lib is generated as MyJNI.so rather > than libMyJNI.so. If you're using SWIG_ADD_MODULE to create the library then the problem is because that macro creates the library like this: ADD_LIBRARY(${SWIG_MODULE_${name}_REAL_NAME} MODULE ${swig_generated_sources} ${swig_other_sources}) SET_TARGET_PROPERTIES(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "") The target property is changing the prefix from the default "lib" to "". I think this is the convention for loadable SWIG modules. You can put your own SET_TARGET_PROPERTIES command after the call to SWIG_ADD_MODULE to change it back. > On a side-note the bootstrap script fails due to ./Tests/CMakeTests > dir not existing Root CMakeLists.txt has SUBDIRS(Source Modules > Templates Utilities Tests/CMakeTests) > > Removing - Tests/CMakeTests got the build working Did you do an update with the -d option? -Brad 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