[CMake] CPack ZIP generator: unwanted directory in zip

Eric Noulard eric.noulard at gmail.com
Wed Mar 25 21:57:06 EDT 2009


2009/3/25 Stephen Collyer <scollyer at netspinner.co.uk>:
> I'm building a Win32 zip package from an out-of-source build in a directory
> c:\mdpqt_HEAD\build.
>
> When the zip file is created, it has the structure:
>
> MDP-1.0.0-win32\mdpqt_HEAD\bin  (and others)
>
> Can someone tell me:
>
> a) where the "-win32" is coming from, and can I remove it ?

Yes you do.
You should be able to set what you want with
SET(CPACK_PACKAGE_FILE_NAME  ""Whatever")


> b) why the generator is inserting the mdpqt_HEAD directory ?

Could you give us an example of the INSTALL command you use?
What is the value of your CMAKE_INSTALL_PREFIX var?


You should may be read those pages:
http://www.cmake.org/Wiki/CMake:Packaging_With_CPack#Using_CMake_variables_to_configure_CPack
http://www.cmake.org/Wiki/CMake:CPackConfiguration


-- 
Erk


More information about the CMake mailing list