Re: [CMake] How to set suid for an executable with CMake and CPack?

2009-08-14 Thread Dong Tiger
Another question, how to set the owner of files for MacOSX PackageMaker packages? 2009/8/14 Dong Tiger idlecat...@gmail.com fakeroot make package solved my problem. 2009/8/10 Eric Noulard eric.noul...@gmail.com 2009/8/10 Dong Tiger idlecat...@gmail.com: Thanks. I'll take a look although I

[CMake] How to set suid for an executable with CMake and CPack?

2009-08-10 Thread Dong Tiger
Hi, I use CPack to build debian package for my project. One of the executables in my project need to have suid set. How could I do that? TIA -- Tiger ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] How to set suid for an executable with CMake and CPack?

2009-08-10 Thread Dong Tiger
BTW, are there any project using CPack? I want to take a reference so I can get things right easier. For example, one problem I ran into is the owner of files installed from my debian package is myself instead of root. 2009/8/10 Dong Tiger idlecat...@gmail.com Hi, I use CPack to build

Re: [CMake] How to set suid for an executable with CMake and CPack?

2009-08-10 Thread Dong Tiger
I tried with install(TARGETS my_executable RUNTIME DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE SETUID ) But it only works if I do sudo make install before cpack -G DEB. How to avoid the sudo make install

Re: [CMake] How to set suid for an executable with CMake and CPack?

2009-08-10 Thread Michael Wild
you probably want to have a look at the fakeroot package Michael On 10. Aug, 2009, at 12:23, Dong Tiger wrote: I tried with install(TARGETS my_executable RUNTIME DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE

Re: [CMake] How to set suid for an executable with CMake and CPack?

2009-08-10 Thread Dong Tiger
Thanks. I'll take a look although I feel CPack should be able to take care of that automatically. Especially the owner of files should not be the user who builds the package. 2009/8/10 Michael Wild them...@users.sourceforge.net you probably want to have a look at the fakeroot package Michael

Re: [CMake] How to set suid for an executable with CMake and CPack?

2009-08-10 Thread Eric Noulard
2009/8/10 Dong Tiger idlecat...@gmail.com: Thanks. I'll take a look although I feel CPack should be able to take care of that automatically. That's your point of view and I respect it but... Especially the owner of files should not be the user who builds the package. this is precisely the