[CMake] cmake package question
James C. Newell
NewellJC at fairmountautomation.com
Mon Feb 4 15:42:06 EST 2008
> -----Original Message-----
> From: Eric Noulard [mailto:eric.noulard at gmail.com]
> Sent: Monday, February 04, 2008 3:31 PM
> To: James C. Newell
> Cc: cmake at cmake.org
> Subject: Re: [CMake] cmake package question
>
> 2008/2/4, James C. Newell <NewellJC at fairmountautomation.com>:
> > Hello,
> >
> > I am new to cmake but enjoying it greatly.
> >
> > My question relates to the cpack feature. I wasn't able to
determine
> > from the documentation or wiki on how to have the package command
> only
> > include the file system from myproj-0.1.1-Linux and below. So, in
the
> > example below instead of the .tar.gz containing
> > myproj-0.1.1-Linux/bin/myproj would contain /bin/myproj. I'm sure I
> > missed something in the documentation but would greatly appreciate
> any
> > advice.
>
> You should try to add
>
> SET(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
>
> in your CMakeLists.txt before include(CPack).
That does it. Thank You.
Jim
>
>
> --
> Erk
>
More information about the CMake
mailing list