On Thu, Jun 5, 2008 at 3:54 PM, Timenkov Yuri <[EMAIL PROTECTED]> wrote: > On Thursday 05 June 2008 17:47:27 Mathieu Malaterre wrote: >> On Thu, Jun 5, 2008 at 3:39 PM, Timenkov Yuri <[EMAIL PROTECTED]> wrote: >> > On Thursday 05 June 2008 17:36:06 Mathieu Malaterre wrote: >> >> Hi, >> >> >> >> Has anyone started working on the development vs runtime package. >> >> For example the runtime package should only install libfoo.so.1.2 >> >> while the -dev package would distribute the libfoo.so symlink to >> >> libfoo.so.1.2. >> >> I know that cpack does not support multiple package right now, but I >> >> would like at least be able to generate the runtime package (discard >> >> the .so symlink from the package). >> >> >> >> Thanks for suggestion, >> > I've filed similar request to tracker >> > (http://public.kitware.com/Bug/view.php?id=6850) >> > And it was solved in CMake-2.6. >> > >> >> Very nice ! >> >> I simply need to make NAMELINK_ONLY /NAMELINK_SKIP configurable (using >> a cmake var) and using two build tree, generate my two packages. > Nope, making 2 build trees is overkill :) > I suppose You need 2 components instead (I didn't tested this solution, but I > suppose it should work): > > install(TARGETS mylib DESTINATION lib COMPONENT runtime NAMELINK_SKIP) > install(TARGETS mylib DESTINATION lib COMPONENT devel NAMELINK_ONLY)
even better ! I only had one install command for the runtime+devel installation. All I need is to split them. I'll try that ASAP. Thanks again, -- Mathieu _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
