Re: [CMake] Emulating libtool's -version-info with CMake?
On Tuesday 09 December 2008, Eric Noulard wrote: > 2008/12/9 Shlomi Fish <[EMAIL PROTECTED]>: > > Hi all! > > > > I have a .so library (for Unix/Windows) that I maintain several versions > > of. I'd like to have a symbolic links structure similar to > > libtool's -version-info : > > > > http://www.ensta.fr/~diam/dev/online/autoconf/autobook/autobook_91.html > > > > The problem is that when doing ADD_LIBRARY, the resultant .so is just .so > > with no versions inside. How can I emulate the behaviour of libtool in > > this regard using CMake? > > SET_TARGET_PROPERTIES( PROPERTIES VERSION 1.0.0 SOVERSION 1) > > see > http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_tgt:SOVERSION Thanks! That seems to have done the trick. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ What does "Zionism" mean? - http://xrl.us/bjn8u Shlomi, so what are you working on? Working on a new wiki about unit testing fortunes in freecell? -- Ran Eilam ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Emulating libtool's -version-info with CMake?
2008/12/9 Shlomi Fish <[EMAIL PROTECTED]>: > Hi all! > > I have a .so library (for Unix/Windows) that I maintain several versions of. > I'd like to have a symbolic links structure similar to > libtool's -version-info : > > http://www.ensta.fr/~diam/dev/online/autoconf/autobook/autobook_91.html > > The problem is that when doing ADD_LIBRARY, the resultant .so is just .so with > no versions inside. How can I emulate the behaviour of libtool in this regard > using CMake? SET_TARGET_PROPERTIES( PROPERTIES VERSION 1.0.0 SOVERSION 1) see http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_tgt:SOVERSION -- Erk ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] Emulating libtool's -version-info with CMake?
Hi all! I have a .so library (for Unix/Windows) that I maintain several versions of. I'd like to have a symbolic links structure similar to libtool's -version-info : http://www.ensta.fr/~diam/dev/online/autoconf/autobook/autobook_91.html The problem is that when doing ADD_LIBRARY, the resultant .so is just .so with no versions inside. How can I emulate the behaviour of libtool in this regard using CMake? Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ The Case for File Swapping - http://xrl.us/bjn7i Shlomi, so what are you working on? Working on a new wiki about unit testing fortunes in freecell? -- Ran Eilam ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake