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

2011-03-25 Thread Michael Jackson
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.jack...@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


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

2011-03-25 Thread Tyler
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.jack...@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.jack...@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

___
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