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 ownership for files in Mac Package built with CPack

2009-08-14 Thread Dong Tiger
Hi, The ownership of files is set to the account who builds the package. But I want to set it to root. For debian packages, I can use fakeroot to do that. Is there equivalent of fakeroot on Mac? Thanks! And what if I want to set the ownership to account other than root? Is this doable for debian

[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
step? Can I embed post-install script in cpack generated debian package? -- Tiger 2009/8/10 Dong Tiger idlecat...@gmail.com 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

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

2009-08-10 Thread Dong Tiger
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 SETUID ) But it only works if I do sudo make install before

Re: [CMake] Starting with Cmake

2009-07-13 Thread Dong Tiger
2009/7/12 Tyler Roscoe ty...@cryptio.net I hope this is a real email address. Posting from a fake one is sketchy. On Sat, Jul 11, 2009 at 06:04:48PM -0700, ML wrote: 1. Is there a doc that describes the 'bare essentials' to a CMake file. What I absolutely need to have in the file. I

Re: [CMake] [CMAKE]: Feature request: Set environment variables in add_test

2009-06-11 Thread Dong Tiger
Thanks. CMake really rocks! 2009/6/11 Bill Hoffman bill.hoff...@kitware.com Philip Lowman wrote: The feature is in CMake CVS (see ENVIRONMENT test property). This came up at work the other day too, someone wanted to set the LD_LIBRARY_PATH environment variable for some dlload()ed lua

[CMake] [CMAKE]: Feature request: Set environment variables in add_test

2009-06-10 Thread Dong Tiger
Hi, It will be very convenient to be able to specify some environment variables when a unit test runs. Currently, the only way I know is using shell script as a wrapper for the actual test program. -- Tiger ___ Powered by www.kitware.com Visit other

Re: [CMake] How to guarntee the sequence of build if no target can be used

2009-06-01 Thread Dong Tiger
2009/5/29 Alexander Neundorf a.neundorf-w...@gmx.net On Thursday 28 May 2009, idlecat...@gmail.com wrote: Hi, This situation is: foo.h is generated from foo.x. And foo.h is included by bar.h. And then bar.h is included by a lot of c files. So actually every c files including bar.h

Re: [CMake] How to guarntee the sequence of build if no target can be used

2009-06-01 Thread Dong Tiger
Thanks. It works. 2009/6/1 Alexander Neundorf a.neundorf-w...@gmx.net On Monday 01 June 2009, Dong Tiger wrote: 2009/5/29 Alexander Neundorf a.neundorf-w...@gmx.net On Thursday 28 May 2009, idlecat...@gmail.com wrote: Hi, This situation is: foo.h is generated from

Re: [CMake] How to guarntee the sequence of build if no target can be used

2009-05-28 Thread Dong Tiger
Thanks for answering my question. 2009/5/27 Tyler Roscoe ty...@cryptio.net On Wed, May 27, 2009 at 11:01:51PM +, idlecat...@gmail.com wrote: foo.h is generated from foo.x. And foo.h is included by bar.h. And then bar.h is included by a lot of c files. So actually every c files