Re: [CMake] How to force CMake install / CPack to create an empty directory.
Hi, thanks for the help! Vlado On Thu, Jan 5, 2012 at 5:53 AM, Fraser Hutchison wrote: > Hi there, > > This looks like a single line deletion will fix it. I've added a note to > the issue here: http://public.kitware.com/Bug/view.php?id=8767#c28187 - it's > probably not worth a patch :-) > > Cheers, > > Fraser. > > > > > On 04/01/2012 14:02, Eric Noulard wrote: >> >> 2012/1/4 Vladimir Jaksic: >>> >>> Hello, >>> >>> For the purposes of my project i need to create multiple empty >>> directories where my exectuable is located, and I would like to >>> include these directories in the .zip file. I have tried the >>> following: >>> >>> -- >>> ... >>> INSTALL(TARGETS myproject DESTINATION .) >>> >>> INSTALL(DIRECTORY DESTINATION directory) - nothing happends >>> >>> SET(CPACK_GENERATOR "ZIP") >>> >>> INCLUDE(CPack) >>> --- >>> >>> but i cannot stick the empty directory inside, only way around i found >>> was creating a dummy file. Is there any other way to to do this? >>> Instruction here >>> http://www.lcfg.org/doc/buildtools/cmake_recipes.html >>> says to do exactly what i did, but it still did not work, has this >>> changed in newer cmake versions? >>> Is it still possible to do it? >> >> Looks like an unresolved, but nevertheless known, bug: >> http://public.kitware.com/Bug/view.php?id=8767 >> >> Note however that the problem seems to be with all Archive generators: >> STGZ TBZ2 TGZ TZ ZIP >> >> e.g. DEB and RPM do include the empty. >> >> This means that the empty dir is installed (in local CPack temp dir) >> but not packaged. >> > -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] How to force CMake install / CPack to create an empty directory.
2012/1/4 Vladimir Jaksic : > Hello, > > For the purposes of my project i need to create multiple empty > directories where my exectuable is located, and I would like to > include these directories in the .zip file. I have tried the > following: > > -- > ... > INSTALL(TARGETS myproject DESTINATION .) > > INSTALL(DIRECTORY DESTINATION directory) - nothing happends > > SET(CPACK_GENERATOR "ZIP") > > INCLUDE(CPack) > --- > > but i cannot stick the empty directory inside, only way around i found > was creating a dummy file. Is there any other way to to do this? > Instruction here > http://www.lcfg.org/doc/buildtools/cmake_recipes.html > says to do exactly what i did, but it still did not work, has this > changed in newer cmake versions? > Is it still possible to do it? Looks like an unresolved, but nevertheless known, bug: http://public.kitware.com/Bug/view.php?id=8767 Note however that the problem seems to be with all Archive generators: STGZ TBZ2 TGZ TZZIP e.g. DEB and RPM do include the empty. This means that the empty dir is installed (in local CPack temp dir) but not packaged. -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] How to force CMake install / CPack to create an empty directory.
Hello, For the purposes of my project i need to create multiple empty directories where my exectuable is located, and I would like to include these directories in the .zip file. I have tried the following: -- ... INSTALL(TARGETS myproject DESTINATION .) INSTALL(DIRECTORY DESTINATION directory) - nothing happends SET(CPACK_GENERATOR "ZIP") INCLUDE(CPack) --- but i cannot stick the empty directory inside, only way around i found was creating a dummy file. Is there any other way to to do this? Instruction here http://www.lcfg.org/doc/buildtools/cmake_recipes.html says to do exactly what i did, but it still did not work, has this changed in newer cmake versions? Is it still possible to do it? Thank you for your help Vlado -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake