[CMake] Too many packages being created for my project with CPack

Tyler tyler at cryptio.net
Fri Mar 25 18:08:22 EDT 2011


I just use:

set (CPACK_GENERATOR "ZIP")

and that seems to work.

I think those CPACK_BINARY_* variables you're setting are only
meaningful in CPack's context, not in CMake's (i.e. those vars are
what CMake writes out in CPackConfig.cmake for Cpack's later use).

hth,
tyler

On Fri, Mar 25, 2011 at 2:37 PM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
> I have a project on OS X that I am using CMake 2.8.3 and generating makefiles. When I do "make package" I get a .dmg, .sh, .stz and .zip files all created. Here is what I think is the relative portion of my CPack code that gets included in my CMakeLists.txt file:
>
>    SET(CPACK_BINARY_BUNDLE "OFF")
>    SET(CPACK_BINARY_CYGWIN "OFF")
>    SET(CPACK_BINARY_DEB "OFF")
>    SET(CPACK_BINARY_DRAGNDROP "OFF")
>    SET(CPACK_BINARY_NSIS "OFF")
>    SET(CPACK_BINARY_OSXX11 "OFF")
>    SET(CPACK_BINARY_PACKAGEMAKER "OFF")
>    SET(CPACK_BINARY_RPM "OFF")
>    SET(CPACK_BINARY_STGZ "OFF")
>    SET(CPACK_BINARY_TBZ2 "OFF")
>    SET(CPACK_BINARY_TGZ "OFF")
>    SET(CPACK_BINARY_TZ "OFF")
>    SET(CPACK_BINARY_ZIP "ON")
>
> I would think that would have shut off everything except a .zip archive? What am I doing wrong.
>
> Thanks
> ___________________________________________________________
> Mike Jackson                      www.bluequartz.net
> Principal Software Engineer       mike.jackson at bluequartz.net
> BlueQuartz Software               Dayton, Ohio
>
> _______________________________________________
> 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
>


More information about the CMake mailing list